Skip to contentSkip to conversation

hid: Add BUS_VIRTUAL to hid_connect logging

PATCH Applied Mark Bolhuis 2 participants 2 messages May 3, 2021 – May 5, 2021 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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>

---
 drivers/hid/hid-core.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/hid/hid-core.c +3 -0
index 0ae9f6df59d1..265cbe592374 100644
@@ -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>";
 	}
Signature · 1 line
2.31.1
maintainer Applied
#1 lore raw
Quoted 12 lines · Mark Bolhuis

Add BUS_VIRTUAL to hid_connect logging since it's a valid hid bus type and it should not print <UNKNOWN>

---
 drivers/hid/hid-core.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/hid/hid-core.c +0 -0
index 0ae9f6df59d1..265cbe592374 100644

drivers/hid/hid-core.c int hid_connect(struct hid_device *hdev, unsigned int connect_mask) · line 2013

Quoted 9 lines
drivers/hid/hid-core.c +3 -0
@@ -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>";
 	}

Applied, thanks Mark.

Signature · 2 lines
Jiri Kosina
SUSE Labs