summaryrefslogtreecommitdiffstats
path: root/drivers/hid
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 /drivers/hid
parent8ffd341c4b66f4a2c0dea93dac9b7141870ea63c (diff)
downloadtalos-op-linux-0678072755b6672b19ee0fd42748a003912fca09.tar.gz
talos-op-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>
Diffstat (limited to 'drivers/hid')
-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>";
}
OpenPOWER on IntegriCloud