HID: wacom: Setup pen input capabilities to the targeted tools
authorPing Cheng <pinglinux@gmail.com>
Tue, 6 Apr 2021 03:46:34 +0000 (20:46 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 13 Apr 2021 06:19:41 +0000 (08:19 +0200)
commit46fc466e01a187ef7c1e21448a89b831c3f5b519
tree468a4fbbcab48053808d3a0215ecf092f08082be
parent69aea9d2843669387d100e353b5113d1adc9502f
HID: wacom: Setup pen input capabilities to the targeted tools

Only set the bits that are supported by the targeted devices.
This patch also removes duplicated set_bit calls.

Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Reviewed-by: Jason Gerecke <Jason.Gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c
drivers/hid/wacom_wac.h