diff options
author | Mark Bolhuis <mark@bolhuis.dev> | 2021-05-03 17:39:38 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-05-05 15:09:09 +0200 |
commit | 48e33befe61a7d407753c53d1a06fc8d6b5dab80 (patch) | |
tree | 8b8334293e7145d59b0b1180b9ba8725b94db7e1 | |
parent | bc8b796f618c3ccb0a2a8ed1e96c00a1a7849415 (diff) |
HID: Add BUS_VIRTUAL to hid_connect logging
Add BUS_VIRTUAL to hid_connect logging since it's a valid hid bus type and it
should not print <UNKNOWN>
Signed-off-by: Mark Bolhuis <mark@bolhuis.dev>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-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 0ae9f6df59d1..265cbe592374 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -2005,6 +2005,9 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask) case BUS_I2C: bus = "I2C"; break; + case BUS_VIRTUAL: + bus = "VIRTUAL"; + break; default: bus = "<UNKNOWN>"; } |