Re: [PATCH v1] auxdisplay: Use designated initializers for arrays of i2c_device_data

From: Andy Shevchenko

Date: Fri Nov 27 2026 - 06:06:26 EST


On Fri, Nov 27, 2026 at 11:45:51AM +0100, Uwe Kleine-König wrote:
> While being less compact, using designated initializers allows to more
> easily see which members of the structs are assigned which value without
> having to lookup the declaration of the struct. And it's also more
> robust against changes to the struct definition.
>
> The mentioned robustness is relevant for a planned change to struct
> i2c_device_id that replaces .driver_data by an anonymous union.
>
> This patch doesn't modify the compiled arrays, only their representation
> in source form benefits. The former was confirmed with x86 and arm64
> builds.

I'm fine with this. Geert, do you have a chance to look at and give a tag?

--
With Best Regards,
Andy Shevchenko