Re: [PATCH 1/2] mfd: Constify mfd_cell arrays
From: Krzysztof Kozlowski
Date: Fri Oct 30 2026 - 10:06:22 EST
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