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 | c061046fe9ce3ff31fb9a807144a2630ad349c17 (patch) | |
| tree | e7fe4551fec5340cb12dd124110bf7451870a0fd /drivers/pci/controller/dwc/pcie-qcom-common.c | |
| parent | Merge tag 'hid-for-linus-2025062701' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
| download | kernel-c061046fe9ce3ff31fb9a807144a2630ad349c17.tar.gz kernel-c061046fe9ce3ff31fb9a807144a2630ad349c17.zip | |
HID: apple: avoid setting up battery timer for devices without battery
Currently, the battery timer is set up for all devices using hid-apple,
irrespective of whether they actually have a battery or not.
APPLE_RDESC_BATTERY is a quirk that indicates the device has a battery
and needs the battery timer. This patch checks for this quirk before
setting up the timer, ensuring that only devices with a battery will
have the timer set up.
Fixes: 6e143293e17a ("HID: apple: Report Magic Keyboard battery 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
