]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Do not add suffix to name of devices with an unknown type
authorJason Gerecke <killertofu@gmail.com>
Fri, 1 May 2015 00:51:53 +0000 (17:51 -0700)
committerJiri Kosina <jkosina@suse.cz>
Mon, 4 May 2015 08:00:22 +0000 (10:00 +0200)
commit7fc5870419b02879dce6b2ac0ab89d3219a6c941
treee2a724827fdbd13ed066d5c06917f3e481daf90e
parent371b153986c1bcf4b7a869de93645923d4b94b32
HID: wacom: Do not add suffix to name of devices with an unknown type

The naming logic currently assumes that all devices will be a pen, finger,
or pad. Though this has historically been the case, the new HID_GENERIC
catch-all may cause us to probe devices with Wacom's 056A VID which aren't
any of these types (e.g. the "Cintiq 24HDT Monitor Control"). This patch
updates the logic so that no suffix will be added to the device name if
the device type is unknown.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Ping Cheng <pingc@wacom.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c