]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: don't apply generic settings to old devices
authorPing Cheng <pinglinux@gmail.com>
Mon, 30 Jan 2017 23:40:49 +0000 (15:40 -0800)
committerJiri Kosina <jkosina@suse.cz>
Fri, 3 Feb 2017 13:43:31 +0000 (14:43 +0100)
commit5a111814896a63017e4b0514ad5b97128d116014
tree13dfc5c7824bb6db2b880d681e5a81d93d376ead
parent73e94be2e1a18f80669d86c11693b8220eb41d85
HID: wacom: don't apply generic settings to old devices

Non-generic devices have numbered_buttons set for both pen and
touch interfaces by default. The actual number of buttons on the
interface is normally manually decided later, which is different
from what those HID generic devices are processed, where number
of buttons are directly retrieved from HID descriptors.

This patch adds the missed HID_GENERIC check and moves the statement
to wacom_setup_pad_input_capabilities since it's not a quirk anymore.

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