diff options
| author | Aditya Garg <[email protected]> | 2025-06-30 12:37:13 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2025-07-03 07:41:40 +0000 |
| commit | 9bdc30e35cbc1aa78ccf01040354209f1e11ca22 (patch) | |
| tree | d6a1332b78ed502f8d7e9732fd7eb4d8636649a8 /drivers/pci/controller/dwc/pcie-qcom-common.c | |
| parent | HID: apple: avoid setting up battery timer for devices without battery (diff) | |
| download | kernel-9bdc30e35cbc1aa78ccf01040354209f1e11ca22.tar.gz kernel-9bdc30e35cbc1aa78ccf01040354209f1e11ca22.zip | |
HID: magicmouse: avoid setting up battery timer when not needed
Currently, the battery timer is set up for all devices using
hid-magicmouse, irrespective of whether they actually need it or not.
The current implementation requires the battery timer for Magic Mouse 2
and Magic Trackpad 2 when connected via USB only. Add checks to ensure
that the battery timer is only set up when they are connected via USB.
Fixes: 0b91b4e4dae6 ("HID: magicmouse: Report battery level over USB")
Cc: [email protected]
Signed-off-by: Aditya Garg <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions
