Re: [PATCH v1] rtc: Use named initializers for arrays of i2c_device_data

Alexandre Belloni <[email protected]> Wed, 24 Jun 2026 23:16:51 +0200
Newsgroups org.ozlabs.lists.openbmc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-rtc
Message-ID <178233558801.1517260.6314981975455292147.b4-ty@b4>
On Fri, 15 May 2026 17:47:20 +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] rtc: Use named initializers for arrays of i2c_device_data
      https://git.kernel.org/abelloni/c/3eebec1cb5dc

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com