Re: [PATCH 1/2] HID: wacom: Set button bits based on a new numbered_buttons

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 20 Aug 2015, Aaron Skomra wrote:

> 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@xxxxxxxxx>
> Reviewed-by: Jason Gerecke <jason.gerecke@xxxxxxxxx>
> ---
>  drivers/hid/wacom_wac.c | 175 +++++++++++++++++-------------------------------
>  drivers/hid/wacom_wac.h |   1 +
>  2 files changed, 61 insertions(+), 115 deletions(-)
> 
> diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c
> index baba9a0..a19aeae 100644
> --- a/drivers/hid/wacom_wac.c
> +++ b/drivers/hid/wacom_wac.c
> @@ -2513,11 +2513,23 @@ int wacom_setup_touch_input_capabilities(struct input_dev *input_dev,
>  	return 0;
>  }
>  
> +void wacom_setup_numbered_buttons(struct input_dev *input_dev,

I made this static, and applied both patches. Thanks,

-- 
Jiri Kosina
SUSE Labs

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux