Input: sur40 - convert le16 to cpu before use
authorRicardo Ribalda <ribalda@chromium.org>
Mon, 15 Apr 2024 21:53:03 +0000 (14:53 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 15 Apr 2024 23:21:44 +0000 (16:21 -0700)
commitba2ec9c4f0c8ab59befc7f62e1606a840347f020
tree61b5aece655037210f392766eb2be75942cbb998
parent8984e0b569236c8581901efce2f1f4d03cd3dec1
Input: sur40 - convert le16 to cpu before use

Smatch found this issue:
drivers/input/touchscreen/sur40.c:424:55: warning: incorrect type in argument 2 (different base types)
drivers/input/touchscreen/sur40.c:424:55:    expected int key
drivers/input/touchscreen/sur40.c:424:55:    got restricted __le16 [usertype] blob_id

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20240410-smatch-v1-6-785d009a852b@chromium.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/sur40.c