Skip to content

Commit

Permalink
HID: Add BUS_VIRTUAL to hid_connect logging
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Bolhuis authored and Jiri Kosina committed May 5, 2021
1 parent bc8b796 commit 48e33be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/hid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>";
}
Expand Down

0 comments on commit 48e33be

Please sign in to comment.