Re: [PATCH v1] pwm: Use named initializers for platform_device_id arrays

Uwe Kleine-König <[email protected]>
Newsgroups org.kernel.vger.linux-pwm,org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel
Message-ID <akgpIQp7QJQQ1yUv@monoceros>
Hello,

On Wed, Jun 17, 2026 at 11:41:50AM +0200, Uwe Kleine-König (The Capable Hub) wrote:
> Named initializers are better readable and more robust to changes of the
> struct definition. This robustness is relevant for a planned change to
> struct platform_device_id replacing .driver_data by an anonymous union.
> 
> While touching these arrays drop a comma after a list terminator.
> 
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <[email protected]>

Applied to

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

Best regards
Uwe
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmpIKXsACgkQj4D7WH0S
/k649Qf/ZMspAQd8n9bWTBQtzrOhW3oJlDoo2L6GDITnCVEzsztTPRhV//AZUkbc
r0BkxW/TnsJD0DhOA40sOzfCLPnFssF7FWxkNzA58FVnkFkTnMxq7LE/7Lj9hi6c
jTZ8QGFhKao68ygZCb1z3Iwsuc0erT8PVu8oCotKR7Q71DMfJTtlxWAP1f6twWEI
ehzXe0zVnX5ZAIbHYKghNHBxhYYPv/1xZQFhcRrbpKZXkQbOqbCJZly6U+TINv0Q
gENRe1EBRvS1+kejI313LuuGvnJBQ1ipoU5BtWfNZdSwfkUVHIx4r5wzXX2pYZJ5
FvMFmIShgZbEoa3JqE5UV0Iv0Hxz2A==
=0lBf
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.