]> git.baikalelectronics.ru Git - kernel.git/commit
HID: magicmouse: set device name when it has been personalized
authorJosé Expósito <jose.exposito89@gmail.com>
Sun, 12 Dec 2021 18:20:59 +0000 (19:20 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 6 Jan 2022 12:58:28 +0000 (13:58 +0100)
commitbacf7ef0cc3fbfa35ae632185c170e7d35097464
treeac350e7758254e9e2fd84a7adbb2a0366b4d5729
parent5f990f3b379fbcb3821f2809cd54a96b1873939e
HID: magicmouse: set device name when it has been personalized

If the Apple Magic Trackpad 2 has been connected to a Mac, the name
is automatically personalized showing its owner name. For example:
"José Expósito's Trackpad".

When connected through Bluetooth, the personalized name is reported,
however, when connected through USB the generic name is reported.

Set the device name correctly to ensure the same driver settings are
loaded, whether connected via Bluetooth or USB.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c