]> www.infradead.org Git - users/jedix/linux-maple.git/commit
backlight: Drop explicit initialization of struct i2c_device_id::driver_data to 0
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Wed, 19 Jun 2024 19:35:57 +0000 (21:35 +0200)
committerLee Jones <lee@kernel.org>
Thu, 20 Jun 2024 17:36:25 +0000 (18:36 +0100)
commitbfd3587760498227510acc1b18c4299c7922ffe3
treee815a01cf398af5f19a93f838d7bbaaf14c64204
parent7857f5c38d04a38e7a20060a6d370caf0424aa4e
backlight: 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.

While add it, also remove commas after the sentinel entries.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20240619193558.2543645-2-u.kleine-koenig@baylibre.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/adp8870_bl.c
drivers/video/backlight/bd6107.c
drivers/video/backlight/ktz8866.c
drivers/video/backlight/lm3509_bl.c
drivers/video/backlight/lm3630a_bl.c
drivers/video/backlight/lm3639_bl.c
drivers/video/backlight/lv5207lp.c
drivers/video/backlight/mp3309c.c