[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211126130141.1811848-6-tero.kristo@linux.intel.com>
Date: Fri, 26 Nov 2021 15:01:38 +0200
From: Tero Kristo <tero.kristo@...ux.intel.com>
To: linux-input@...r.kernel.org, benjamin.tissoires@...hat.com,
jikos@...nel.org, mika.westerberg@...ux.intel.com,
tero.kristo@...ux.intel.com
Cc: linux-kernel@...r.kernel.org, dmitry.torokhov@...il.com,
peter.hutterer@...-t.net
Subject: [RFCv2 5/8] HID: core: map USI pen style reports directly
USI pen style reports have funky layout, so don't try to parse them.
Instead, handle them identically to variable report items.
Signed-off-by: Tero Kristo <tero.kristo@...ux.intel.com>
---
drivers/hid/hid-core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 525dbc59633f..315dc2b8ecbb 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1567,8 +1567,8 @@ static void hid_input_field(struct hid_device *hid, struct hid_field *field,
}
for (n = 0; n < count; n++) {
-
- if (HID_MAIN_ITEM_VARIABLE & field->flags) {
+ if (HID_MAIN_ITEM_VARIABLE & field->flags ||
+ field->logical == HID_DG_PEN_LINE_STYLE) {
hid_process_event(hid, field, &field->usage[n], value[n], interrupt);
continue;
}
--
2.25.1
Powered by blists - more mailing lists