From: Benson Leung Date: Tue, 8 Mar 2016 19:25:39 +0000 (-0800) Subject: HID: i2c-hid: Add hid-over-i2c name to i2c id table X-Git-Tag: v4.6-rc1~107^2^3~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dcdde98bcbd5a9f0ce94bc2080ec31e71a8d811;p=platform%2Fkernel%2Flinux-exynos.git 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: where is compatible string of OF binding stripped of manufacturer's prefix. Tested-by: Andrew Duggan Acked-by: Benjamin Tissoires Signed-off-by: Benson Leung Signed-off-by: Dmitry Torokhov Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c index b921693..a2c6c98 100644 --- a/drivers/hid/i2c-hid/i2c-hid.c +++ b/drivers/hid/i2c-hid/i2c-hid.c @@ -1191,6 +1191,7 @@ static const struct dev_pm_ops i2c_hid_pm = { static const struct i2c_device_id i2c_hid_id_table[] = { { "hid", 0 }, + { "hid-over-i2c", 0 }, { }, }; MODULE_DEVICE_TABLE(i2c, i2c_hid_id_table);