Skip to content

Commit 874bb17

Browse files
committed
HID: surface-hid: Use target-ID enum instead of hard-coding values
Instead of hard-coding the target ID, use the respective enum ssam_ssh_tid value. Signed-off-by: Maximilian Luz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Patchset: surface-sam
1 parent d75a163 commit 874bb17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/surface-hid/surface_kbd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static int surface_kbd_probe(struct platform_device *pdev)
250250

251251
shid->uid.domain = SSAM_DOMAIN_SERIALHUB;
252252
shid->uid.category = SSAM_SSH_TC_KBD;
253-
shid->uid.target = 2;
253+
shid->uid.target = SSAM_SSH_TID_KIP;
254254
shid->uid.instance = 0;
255255
shid->uid.function = 0;
256256

0 commit comments

Comments
 (0)