summaryrefslogtreecommitdiff
path: root/scripts/gen_compile_commands.py
diff options
context:
space:
mode:
authorAditya Garg <gargaditya08@live.com>2025-06-30 12:37:13 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-15 12:17:08 +0200
commit013e9c9087809158e71590f4fa0e3dcda9dd58c3 (patch)
treeb9002c48fb40998e137e709ed95c2f6c65c26faa /scripts/gen_compile_commands.py
parent8b4a94b1510f6a46ec48494b52ee8f67eb4fc836 (diff)
HID: apple: avoid setting up battery timer for devices without battery
commit c061046fe9ce3ff31fb9a807144a2630ad349c17 upstream. 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: stable@vger.kernel.org Signed-off-by: Aditya Garg <gargaditya08@live.com> Signed-off-by: Jiri Kosina <jkosina@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions