From c24eab4e0e449845ba98e649b0605ab0450193db Mon Sep 17 00:00:00 2001 From: Ping Cheng Date: Fri, 24 Apr 2015 15:32:51 -0700 Subject: [PATCH] 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 Reviewed-by: Jason Gerecke Signed-off-by: Jiri Kosina --- Reading git-format-patch failed