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>
This commit is contained in:
Daniel Martin 2015-09-17 17:02:22 +02:00 committed by Jiri Kosina
parent 8ffd341c4b
commit 0678072755

View File

@ -1678,6 +1678,9 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask)
case BUS_BLUETOOTH: case BUS_BLUETOOTH:
bus = "BLUETOOTH"; bus = "BLUETOOTH";
break; break;
case BUS_I2C:
bus = "I2C";
break;
default: default:
bus = "<UNKNOWN>"; bus = "<UNKNOWN>";
} }