aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPing Cheng <pinglinux@gmail.com>2015-04-24 15:32:51 -0700
committerJiri Kosina <jkosina@suse.cz>2015-04-27 11:08:12 +0200
commitc24eab4e0e449845ba98e649b0605ab0450193db (patch)
treee194a2d1fc3b57c8aa1338327f40cdab8f9840d6 /tools/perf/scripts/python
parent007760cf082392b65a05c40eb615c5f8294b441a (diff)
HID: wacom: retrieve name from HID descriptor for generic devices
HID generic devices share the same default name, "Wacom HID". This causes userland programs to show same device names for different devices, which would confuse end users with same device names for different devices too. This patch uses name retrieved from HID descriptor, if a meaningful name is reported. Otherwise, affix its product ID to "Wacom HID". Names from descriptor may contain extra whitespaces. To comfort readers' eyes, we removed those extra whitespaces too. Signed-off-by: Ping Cheng <pingc@wacom.com> Reviewed-by: Jason Gerecke <killertofu@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions