HID: Make I2C a known bus in hid_connect()
authorDaniel Martin <[email protected]>
Thu, 17 Sep 2015 15:02:22 +0000 (17:02 +0200)
committerJiri Kosina <[email protected]>
Wed, 23 Sep 2015 09:49:49 +0000 (11:49 +0200)
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]>
drivers/hid/hid-core.c

index 31fc6427cac389d9409fc09b5d4e44de60573228..71a1286c4c353db643b523d4397f07c38d57a3ad 100644 (file)
@@ -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>";
        }