Re: (subset) [PATCH v2] leds: Use named initializers for arrays of i2c_device_data

From: Lee Jones

Date: Thu Jun 04 2026 - 11:34:23 EST


On Fri, 22 May 2026 12:42:22 +0200, Uwe Kleine-König (The Capable Hub) wrote:
> While being less compact, using named 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.
>
> [...]

Applied, thanks!

[1/1] leds: Use named initializers for arrays of i2c_device_data
commit: dce22ae7b4145b52c98e9d9a0b28d67289adfdcc

--
Lee Jones [李琼斯]