linux/drivers/w1/masters
Uwe Kleine-König (The Capable Hub) 0560183f91 w1: ds2482: Use named initializers for arrays of i2c_device_data
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.

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@baylibre.com>
Link: https://patch.msgid.link/20260518171456.872736-2-u.kleine-koenig@baylibre.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://patch.msgid.link/20260604165027.83922-4-krzk@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-06-08 21:37:56 +02:00
..
amd_axi_w1.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
ds2482.c w1: ds2482: Use named initializers for arrays of i2c_device_data 2026-06-08 21:37:56 +02:00
ds2490.c w1: ds2490: drop redundant device reference 2026-04-03 10:55:12 +02:00
Kconfig w1: add UART w1 bus driver 2024-02-15 15:02:33 +01:00
Makefile w1: add UART w1 bus driver 2024-02-15 15:02:33 +01:00
matrox_w1.c w1: matrox: Remove some deadcode in matrox_w1_remove() 2025-08-31 14:14:07 +02:00
mxc_w1.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
omap_hdq.c w1: omap-hdq: Remove redundant pm_runtime_mark_last_busy() calls 2025-11-11 10:55:18 +01:00
sgi_w1.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
w1-gpio.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
w1-uart.c w1: fix NULL pointer dereference in probe 2025-02-03 12:52:49 +01:00