diff options
author | Daniel Martin <daniel.martin@secunet.com> | 2015-09-17 18:02:22 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-09-23 12:49:49 +0300 |
commit | 0678072755b6672b19ee0fd42748a003912fca09 (patch) | |
tree | 33aa66b4e7926b5f694f2d401c77a16bb8b74d5a /drivers/hid | |
parent | 8ffd341c4b66f4a2c0dea93dac9b7141870ea63c (diff) | |
download | linux-0678072755b6672b19ee0fd42748a003912fca09.tar.xz |
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.c | 3 |
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>"; } |