]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Refactor button-to-key translation into function
authorJason Gerecke <killertofu@gmail.com>
Thu, 20 Oct 2016 01:03:39 +0000 (18:03 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 20 Oct 2016 07:53:55 +0000 (09:53 +0200)
commitcc8510b57b22be74a2e57b950bf974b7ac06a6ed
tree8d84d0d5a613fd1b54c1f97e7697878d30a9d517
parent800312d654de7aafc9beb8e024b957ce8d029d9f
HID: wacom: Refactor button-to-key translation into function

This just centralizes the logic used in both wacom_setup_numbered_buttons
and wacom_report_numbered_buttons so that they don't drift out of sync.

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