Re: [PATCH v1] w1: ds2482: Use named initializers for arrays of i2c_device_data
From: Krzysztof Kozlowski
Date: Tue May 26 2026 - 01:55:12 EST
On Mon, 18 May 2026 19:14:56 +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] w1: ds2482: Use named initializers for arrays of i2c_device_data
https://git.kernel.org/krzk/linux-w1/c/10cc9de3d4fca5869db7629f22167bfb7a4713fc
Best regards,
--
Krzysztof Kozlowski <krzk@xxxxxxxxxx>