]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Remove useless conditions from 'wacom_query_tablet_data'
authorJason Gerecke <killertofu@gmail.com>
Mon, 2 Nov 2015 23:41:12 +0000 (15:41 -0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 3 Nov 2015 13:36:23 +0000 (14:36 +0100)
commit9997ce3573cbaf59bb6ae79e46323ea1bb26eb3f
tree82a97d59e446f3363a4c182a18dd1e947ff2e736
parent866c15f5a5815a87aa1c0db4ae058ca46f117d38
HID: wacom: Remove useless conditions from 'wacom_query_tablet_data'

When support for the Cintiq Companion Hybrid and Cintiq Companion 2 was
added (998db06 and d1dd9d7), the 'wacom_query_tablet_data' function was
updated to include references to CINTIQ_HYBRID and CINTIQ_COMPANION_2
with the thought that they were necessary to switch the touch interface
into the proper mode. This is unnecessary, however, since those types
are only ever associated with the pen interface -- the touch interfaces
are either CINTIQ_24HDT or HID_GENERIC. To avoid confusion in the future,
we remove the unnecessary CINTIQ_HYBRID and CINTIQ_COMPANION_2 conditions.

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