HID: wacom: Set button bits based on a new numbered_buttons
authorAaron Skomra <skomra@gmail.com>
Thu, 20 Aug 2015 23:05:16 +0000 (16:05 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 28 Aug 2015 18:43:20 +0000 (20:43 +0200)
Prior to this commit, numbered button bit setting was done separately
for each device type in wacom_setup_pad_capabilities(). Here we add a
numbered_buttons property to the wacom_features struct and extract the
repeated bit setting code to a new function:
wacom_settup_numbered_buttons().

Signed-off-by: Aaron Skomra <aaron.skomra@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

Simple merge
Simple merge