diff options
author | Basavaraj Natikar <Basavaraj.Natikar@amd.com> | 2022-05-09 18:50:26 +0530 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-05-11 14:16:26 +0200 |
commit | 806fc359a39458c54dedc28b904ca27b3fc79b19 (patch) | |
tree | 99424879f9fdc4e4b44ecb7a87f8b367a902c4c1 /drivers/hid | |
parent | a8641d7d8500d41d312350470464e03f3df3672a (diff) |
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 <mario.limonciello@amd.com>
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index db925794fbe6..00154a1cd2d8 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -2222,6 +2222,10 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask) case BUS_VIRTUAL: bus = "VIRTUAL"; break; + case BUS_INTEL_ISHTP: + case BUS_AMD_SFH: + bus = "SENSOR HUB"; + break; default: bus = "<UNKNOWN>"; } |