Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Maximilian Luz and committed by
Hans de Goede
ea11bf4e 1e6201d9

+1 -1
+1 -1
drivers/hid/surface-hid/surface_kbd.c
··· 250 250 251 251 shid->uid.domain = SSAM_DOMAIN_SERIALHUB; 252 252 shid->uid.category = SSAM_SSH_TC_KBD; 253 - shid->uid.target = 2; 253 + shid->uid.target = SSAM_SSH_TID_KIP; 254 254 shid->uid.instance = 0; 255 255 shid->uid.function = 0; 256 256