Skip to content

Commit e3a5eb4

Browse files
ukleinekandy-shev
authored andcommitted
auxdisplay: 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> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent 9852d85 commit e3a5eb4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/auxdisplay/ht16k33.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ static void ht16k33_remove(struct i2c_client *client)
747747
}
748748

749749
static const struct i2c_device_id ht16k33_i2c_match[] = {
750-
{ "ht16k33", 0 },
750+
{ "ht16k33" },
751751
{ }
752752
};
753753
MODULE_DEVICE_TABLE(i2c, ht16k33_i2c_match);

drivers/auxdisplay/lcd2s.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ static void lcd2s_i2c_remove(struct i2c_client *i2c)
349349
}
350350

351351
static const struct i2c_device_id lcd2s_i2c_id[] = {
352-
{ "lcd2s", 0 },
352+
{ "lcd2s" },
353353
{ }
354354
};
355355
MODULE_DEVICE_TABLE(i2c, lcd2s_i2c_id);

0 commit comments

Comments
 (0)