[PATCH 1/2] mfd: Constify mfd_cell arrays

Thomas Weißschuh thomas.weissschuh at linutronix.de
Fri Oct 30 01:47:25 PDT 2026


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.

(...)

Thomas



More information about the linux-arm-kernel mailing list