Re: [PATCH v1] pwm: pca9685: Use named initializers for struct i2c_device_id

From: Uwe Kleine-König

Date: Tue May 19 2026 - 06:10:26 EST


On Mon, May 18, 2026 at 07:23:22PM +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.
>
> This patch doesn't modify the compiled arrays, only their representation
> in source form benefits. The former was confirmed with x86 and arm64
> builds.
>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next

as merge window material.

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature