]> git.ipfire.org Git - thirdparty/linux.git/commit
extcon: Drop explicit initialization of struct i2c_device_id::driver_data to 0
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Wed, 18 Sep 2024 12:31:48 +0000 (14:31 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Sun, 8 Dec 2024 12:59:40 +0000 (21:59 +0900)
commit7041ed0dde8319991b59003c414f0bda5192b041
tree6068bab93181ba55918c3878d140c675db7b404b
parent68c8448341e3e255c5e58a2206545a00f5129d6d
extcon: Drop explicit initialization of struct i2c_device_id::driver_data to 0

These drivers don't use the driver_data member of struct i2c_device_id,
so don't explicitly initialize this member.

This prepares putting driver_data in an anonymous union which requires
either no initialization or named designators. But it's also a nice
cleanup on its own.

Link: https://lore.kernel.org/lkml/20240918123150.1540161-6-u.kleine-koenig@baylibre.com/
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-fsa9480.c
drivers/extcon/extcon-ptn5150.c