Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: 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.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20240715194341.1755599-2-u.kleine-koenig@baylibre.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Uwe Kleine-König and committed by
Bartosz Golaszewski
c206d6be 8400291e

+2 -2
+1 -1
drivers/gpio/gpio-fxl6408.c
··· 138 138 MODULE_DEVICE_TABLE(of, fxl6408_dt_ids); 139 139 140 140 static const struct i2c_device_id fxl6408_id[] = { 141 - { "fxl6408", 0 }, 141 + { "fxl6408" }, 142 142 { } 143 143 }; 144 144 MODULE_DEVICE_TABLE(i2c, fxl6408_id);
+1 -1
drivers/gpio/gpio-max7300.c
··· 53 53 } 54 54 55 55 static const struct i2c_device_id max7300_id[] = { 56 - { "max7300", 0 }, 56 + { "max7300" }, 57 57 { } 58 58 }; 59 59 MODULE_DEVICE_TABLE(i2c, max7300_id);