[PATCH 1/2] mfd: Constify mfd_cell arrays

Krzysztof Kozlowski krzysztof.kozlowski at oss.qualcomm.com
Fri Oct 30 07:02:10 PDT 2026


On 30/10/2026 09:47, Thomas Weißschuh wrote:
> On Fri, Oct 30, 2026 at 08:11:38AM +0100, 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.
> 
> Looks like a candidate for scripts/const_structs.checkpatch.

I think no, too many false positives. 1/3 of drivers modify the mfd_cell.

Best regards,
Krzysztof



More information about the linux-arm-kernel mailing list