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)
commit0aa45fcc42d82753a257abbc7138922d8250e06f
treeac350e7758254e9e2fd84a7adbb2a0366b4d5729
parentb2dcadef207719a9b3520cb9f1c9237c320d3ccd
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