Re: [PATCH 1/2] mfd: Constify mfd_cell arrays

From: Chen-Yu Tsai

Date: Fri Oct 30 2026 - 04:40:51 EST


On Fri, Oct 30, 2026 at 3:12 PM Krzysztof Kozlowski
<krzysztof.kozlowski@xxxxxxxxxxxxxxxx> wrote:
>
> mfd_add_devices() takes pointer to const, so 'struct mfd_cell' arrays
> can be constified whenever driver does not modify it in the probe.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
> ---
> drivers/mfd/ac100.c | 2 +-
> drivers/mfd/axp20x.c | 4 ++--

Acked-by: Chen-Yu Tsai <wens@xxxxxxxxxx> # ac100 & axp20x