[PATCH 1/2] mfd: Constify mfd_cell arrays

Matti Vaittinen mazziesaccount at gmail.com
Fri Oct 30 01:24:23 PDT 2026


On 30/10/2026 09:11, Krzysztof Kozlowski 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 at oss.qualcomm.com>
> ---
>   drivers/mfd/ac100.c                   | 2 +-
>   drivers/mfd/axp20x.c                  | 4 ++--
>   drivers/mfd/cgbc-core.c               | 2 +-
>   drivers/mfd/cs5535-mfd.c              | 2 +-
>   drivers/mfd/intel_soc_pmic_bxtwc.c    | 2 +-
>   drivers/mfd/intel_soc_pmic_chtdc_ti.c | 2 +-
>   drivers/mfd/intel_soc_pmic_chtwc.c    | 2 +-
>   drivers/mfd/intel_soc_pmic_crc.c      | 6 +++---
>   drivers/mfd/max77705.c                | 2 +-
>   drivers/mfd/menf21bmc.c               | 2 +-
>   drivers/mfd/mxs-lradc.c               | 6 +++---
>   drivers/mfd/rohm-bd718x7.c            | 6 +++---

Thanks Krzysztof!

Took a look at the ROHM stuff. Looks great to me.

-- Matti

-- 
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland

~~ When things go utterly wrong vim users can always type :help! ~~



More information about the linux-arm-kernel mailing list