]> exis.tech > repos - linux.git/commit
i2c: pxa: Use named initializers for the platform_device_id array
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 17 Jun 2026 09:37:36 +0000 (11:37 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 18 Jun 2026 10:08:49 +0000 (12:08 +0200)
commitac930b80c1e0eba283d7843180964e6d2a87369d
tree493f100543639732e7b98e7e85a3b809e778ac74
parent218cfe364b55b2768221629bd4a69ad190b7fbbc
i2c: pxa: Use named initializers for the platform_device_id array

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.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/827657abb02edb39bc90f7336194f614d383770e.1781688767.git.u.kleine-koenig@baylibre.com
drivers/i2c/busses/i2c-pxa.c