summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Martin <daniel.martin@secunet.com>2015-09-17 17:02:22 +0200
committerJiri Kosina <jkosina@suse.cz>2015-09-23 11:49:49 +0200
commit0678072755b6672b19ee0fd42748a003912fca09 (patch)
tree33aa66b4e7926b5f694f2d401c77a16bb8b74d5a
parentHID: saitek: mode button quirk for Mad Catz R.A.T.5 (diff)
downloadlinux-0678072755b6672b19ee0fd42748a003912fca09.tar.xz
linux-0678072755b6672b19ee0fd42748a003912fca09.zip
HID: Make I2C a known bus in hid_connect()
Just to prettify the log message. Otherwise it would be <UNKNOWN>. Signed-off-by: Daniel Martin <consume.noise@gmail.com> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/hid/hid-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 31fc6427cac3..71a1286c4c35 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1678,6 +1678,9 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask)
case BUS_BLUETOOTH:
bus = "BLUETOOTH";
break;
+ case BUS_I2C:
+ bus = "I2C";
+ break;
default:
bus = "<UNKNOWN>";
}