Skip to content

Commit 0678072

Browse files
Daniel MartinJiri Kosina
authored andcommitted
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 <[email protected]> Reviewed-by: Benjamin Tissoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 8ffd341 commit 0678072

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/hid/hid-core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,6 +1678,9 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask)
16781678
case BUS_BLUETOOTH:
16791679
bus = "BLUETOOTH";
16801680
break;
1681+
case BUS_I2C:
1682+
bus = "I2C";
1683+
break;
16811684
default:
16821685
bus = "<UNKNOWN>";
16831686
}

0 commit comments

Comments
 (0)