Skip to content

Commit 806fc35

Browse files
basuamdJiri Kosina
authored andcommitted
HID: core: Display "SENSOR HUB" for sensor hub bus string in hid_info
Currently sensor hub shows "<UNKNOWN>", but this is a pretty common type available in many notebooks. Hence using the string "SENSOR HUB". Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Basavaraj Natikar <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent a8641d7 commit 806fc35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/hid/hid-core.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,6 +2222,10 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask)
22222222
case BUS_VIRTUAL:
22232223
bus = "VIRTUAL";
22242224
break;
2225+
case BUS_INTEL_ISHTP:
2226+
case BUS_AMD_SFH:
2227+
bus = "SENSOR HUB";
2228+
break;
22252229
default:
22262230
bus = "<UNKNOWN>";
22272231
}

0 commit comments

Comments
 (0)