Skip to content

Commit

Permalink
HID: surface-hid: Use target-ID enum instead of hard-coding values
Browse files Browse the repository at this point in the history
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>
Patchset: surface-sam
  • Loading branch information
qzed committed Sep 24, 2023
1 parent d75a163 commit 874bb17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/surface-hid/surface_kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 874bb17

Please sign in to comment.