Skip to content

Commit 1f59169

Browse files
jsgfJiri Kosina
authored andcommitted
HID: debugfs: decode Generic Device Controls Usage Page
The USB HID Usage Tables spec defines page 6 for Generic Device Controls, the most useful of which (to me) is Battery Strength. Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent b4b583d commit 1f59169

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎drivers/hid/hid-debug.c‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@ static const struct hid_usage_entry hid_usage_table[] = {
113113
{0, 0xbd, "FlareRelease"},
114114
{0, 0xbe, "LandingGear"},
115115
{0, 0xbf, "ToeBrake"},
116+
{ 6, 0, "GenericDeviceControls" },
117+
{0, 0x20, "BatteryStrength" },
118+
{0, 0x21, "WirelessChannel" },
119+
{0, 0x22, "WirelessID" },
120+
{0, 0x23, "DiscoverWirelessControl" },
121+
{0, 0x24, "SecurityCodeCharacterEntered" },
122+
{0, 0x25, "SecurityCodeCharactedErased" },
123+
{0, 0x26, "SecurityCodeCleared" },
116124
{ 7, 0, "Keyboard" },
117125
{ 8, 0, "LED" },
118126
{0, 0x01, "NumLock"},

0 commit comments

Comments
 (0)