diff mbox series

[RESEND] HID: uclogic: Add missing suffix for digitalizers

Message ID 20220815142615.17965-1-jose.exposito89@gmail.com
State Accepted
Commit 0977fda0587cbc5403651ba169e264aa01e8a026
Headers show
Series [RESEND] HID: uclogic: Add missing suffix for digitalizers | expand

Commit Message

José Expósito Aug. 15, 2022, 2:26 p.m. UTC
The Pen (0x02) application usage was changed to Digitalizer (0x01) in
commit f7d8e387d9ae ("HID: uclogic: Switch to Digitizer usage for
styluses"). However, a suffix was not selected for the new usage.

Handle the digitalizer application usage in uclogic_input_configured()
and add the required suffix.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>

---

Kindly resending this patch so it doesn't get lost after the merge
window.
---
 drivers/hid/hid-uclogic-core.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jiri Kosina Aug. 25, 2022, 8:25 a.m. UTC | #1
On Mon, 15 Aug 2022, José Expósito wrote:

> The Pen (0x02) application usage was changed to Digitalizer (0x01) in
> commit f7d8e387d9ae ("HID: uclogic: Switch to Digitizer usage for
> styluses"). However, a suffix was not selected for the new usage.
> 
> Handle the digitalizer application usage in uclogic_input_configured()
> and add the required suffix.
> 
> Signed-off-by: José Expósito <jose.exposito89@gmail.com>
> 
> ---
> 
> Kindly resending this patch so it doesn't get lost after the merge
> window.
> ---
>  drivers/hid/hid-uclogic-core.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/hid/hid-uclogic-core.c b/drivers/hid/hid-uclogic-core.c
> index 47a17375c7fc..ff46604ef1d8 100644
> --- a/drivers/hid/hid-uclogic-core.c
> +++ b/drivers/hid/hid-uclogic-core.c
> @@ -153,6 +153,7 @@ static int uclogic_input_configured(struct hid_device *hdev,
>  			suffix = "Pad";
>  			break;
>  		case HID_DG_PEN:
> +		case HID_DG_DIGITIZER:
>  			suffix = "Pen";
>  			break;
>  		case HID_CP_CONSUMER_CONTROL:

Applied, thanks.
diff mbox series

Patch

diff --git a/drivers/hid/hid-uclogic-core.c b/drivers/hid/hid-uclogic-core.c
index 47a17375c7fc..ff46604ef1d8 100644
--- a/drivers/hid/hid-uclogic-core.c
+++ b/drivers/hid/hid-uclogic-core.c
@@ -153,6 +153,7 @@  static int uclogic_input_configured(struct hid_device *hdev,
 			suffix = "Pad";
 			break;
 		case HID_DG_PEN:
+		case HID_DG_DIGITIZER:
 			suffix = "Pen";
 			break;
 		case HID_CP_CONSUMER_CONTROL: