commit | 49005b9fd05249d537363ff86cb41f07f48c847a | [log] [tgz] |
---|---|---|
author | Jason Gerecke <killertofu@gmail.com> | Wed Oct 19 18:03:39 2016 -0700 |
committer | Jiri Kosina <jkosina@suse.cz> | Thu Oct 20 09:53:55 2016 +0200 |
tree | 8d84d0d5a613fd1b54c1f97e7697878d30a9d517 | |
parent | 1b18b75c7e2452fc6f4cd1bb701efc4438532a07 [diff] |
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>