]> www.infradead.org Git - users/dwmw2/linux.git/commit
eeprom: Drop explicit initialization of struct i2c_device_id::driver_data to 0
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 10 May 2024 21:14:54 +0000 (23:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 15:47:27 +0000 (17:47 +0200)
commit10724d5d477f8baadeaa183e288d6bd872bcade2
treea3a6e12121efc2d97ae82e15b3f28c55675f7e87
parent83f939f4d4b91c245ff4e58422c014969f3772a6
eeprom: 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@pengutronix.de>
Link: https://lore.kernel.org/r/20240510211454.2274614-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/ee1004.c
drivers/misc/eeprom/idt_89hpesx.c
drivers/misc/eeprom/max6875.c