Skip to content

Commit 1dcdde9

Browse files
bleungatchromiumJiri Kosina
authored andcommitted
HID: i2c-hid: Add hid-over-i2c name to i2c id table
When using the device tree binding OF compatible = "hid-over-i2c" the i2c id table also needs to have that name in order to auto load this driver, since i2c core reports module alias as i2c:<string> where <string> is compatible string of OF binding stripped of manufacturer's prefix. Tested-by: Andrew Duggan <[email protected]> Acked-by: Benjamin Tissoires <[email protected]> Signed-off-by: Benson Leung <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent c2848f2 commit 1dcdde9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,7 @@ static const struct dev_pm_ops i2c_hid_pm = {
11911191

11921192
static const struct i2c_device_id i2c_hid_id_table[] = {
11931193
{ "hid", 0 },
1194+
{ "hid-over-i2c", 0 },
11941195
{ },
11951196
};
11961197
MODULE_DEVICE_TABLE(i2c, i2c_hid_id_table);

0 commit comments

Comments
 (0)