Skip to contentSkip to conversation

HID: uclogic: Add missing suffix for digitalizers

PATCH RESEND Applied José Expósito 2 participants 2 messages Aug 15, 2022 – Aug 25, 2022 HID

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 HID: uclogic: Add missing suffix for digitalizers

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.

---

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(+)
drivers/hid/hid-uclogic-core.c +1 -0
index 47a17375c7fc..ff46604ef1d8 100644
@@ -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:
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 22 lines · José Expósito

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.

---

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(+)
drivers/hid/hid-uclogic-core.c +0 -0
index 47a17375c7fc..ff46604ef1d8 100644

drivers/hid/hid-uclogic-core.c static int uclogic_input_configured(struct hid_device *hdev, · line 159

Quoted 7 lines
drivers/hid/hid-uclogic-core.c +1 -0
@@ -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.

Signature · 2 lines
Jiri Kosina
SUSE Labs