]> git.baikalelectronics.ru Git - kernel.git/commit
HID: nintendo: Set phys property of input device based on HID phys
authorThomas Schneider <qsx@chaotikum.eu>
Sat, 11 Jun 2022 01:03:59 +0000 (03:03 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 15 Jun 2022 14:42:32 +0000 (16:42 +0200)
commit89b8a1a2d1a931b6ede3e9467e89592951f370a9
tree03f4a2d29646fd74a3f36972100df81abe877c46
parentbe595aedc407290395c459a03d49be1ea3bd48e4
HID: nintendo: Set phys property of input device based on HID phys

While the MAC address the uniq identifier is set to (cf. commit
477d0510cbfe ("HID: nintendo: set controller uniq to MAC")) is certainly
unique, the physical location can be more helpful in user interfaces.  The
underlying hid_device already provides a suitable value, so we can simply
reuse this here.

Signed-off-by: Thomas Schneider <qsx@chaotikum.eu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-nintendo.c