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

fbdev: 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>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Uwe Kleine-König and committed by
Helge Deller
c260bda6 e4066d17

+5 -5
+1 -1
drivers/video/fbdev/matrox/matroxfb_maven.c
··· 1282 1282 } 1283 1283 1284 1284 static const struct i2c_device_id maven_id[] = { 1285 - { "maven", 0 }, 1285 + { "maven" }, 1286 1286 { } 1287 1287 }; 1288 1288 MODULE_DEVICE_TABLE(i2c, maven_id);
+4 -4
drivers/video/fbdev/ssd1307fb.c
··· 782 782 } 783 783 784 784 static const struct i2c_device_id ssd1307fb_i2c_id[] = { 785 - { "ssd1305fb", 0 }, 786 - { "ssd1306fb", 0 }, 787 - { "ssd1307fb", 0 }, 788 - { "ssd1309fb", 0 }, 785 + { "ssd1305fb" }, 786 + { "ssd1306fb" }, 787 + { "ssd1307fb" }, 788 + { "ssd1309fb" }, 789 789 { } 790 790 }; 791 791 MODULE_DEVICE_TABLE(i2c, ssd1307fb_i2c_id);