projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e6201d
)
HID: surface-hid: Use target-ID enum instead of hard-coding values
author
Maximilian Luz
<luzmaximilian@gmail.com>
Fri, 2 Dec 2022 22:33:25 +0000
(23:33 +0100)
committer
Hans de Goede
<hdegoede@redhat.com>
Thu, 2 Feb 2023 21:48:20 +0000
(22:48 +0100)
Instead of hard-coding the target ID, use the respective enum
ssam_ssh_tid value.
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link:
https://lore.kernel.org/r/20221202223327.690880-8-luzmaximilian@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/hid/surface-hid/surface_kbd.c
patch
|
blob
|
history
diff --git
a/drivers/hid/surface-hid/surface_kbd.c
b/drivers/hid/surface-hid/surface_kbd.c
index 0635341bc5174bbf1112f9eb7f5099bb2b89acad..42933bf3e925fba7b997df89c239479c70659a11 100644
(file)
--- a/
drivers/hid/surface-hid/surface_kbd.c
+++ b/
drivers/hid/surface-hid/surface_kbd.c
@@
-250,7
+250,7
@@
static int surface_kbd_probe(struct platform_device *pdev)
shid->uid.domain = SSAM_DOMAIN_SERIALHUB;
shid->uid.category = SSAM_SSH_TC_KBD;
- shid->uid.target =
2
;
+ shid->uid.target =
SSAM_SSH_TID_KIP
;
shid->uid.instance = 0;
shid->uid.function = 0;