Skip to content

Commit 4005667

Browse files
ukleinekJiri Kosina
authored andcommitted
HID: i2c-hid-of: 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 touching the initializer, also remove the comma after the sentinel entry. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent f23aa4c commit 4005667

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/hid/i2c-hid/i2c-hid-of.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ MODULE_DEVICE_TABLE(of, i2c_hid_of_match);
144144
#endif
145145

146146
static const struct i2c_device_id i2c_hid_of_id_table[] = {
147-
{ "hid", 0 },
148-
{ "hid-over-i2c", 0 },
149-
{ },
147+
{ "hid" },
148+
{ "hid-over-i2c" },
149+
{ }
150150
};
151151
MODULE_DEVICE_TABLE(i2c, i2c_hid_of_id_table);
152152

0 commit comments

Comments
 (0)