HID: Make I2C a known bus in hid_connect()
authorDaniel Martin <daniel.martin@secunet.com>
Thu, 17 Sep 2015 15:02:22 +0000 (17:02 +0200)
committerJiri Kosina <jkosina@suse.cz>
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 <consume.noise@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
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>";
        }