[PATCH 0/2] HID: avoid setting up battery timer when not needed in hid-apple and magicmouse
From: Aditya Garg
Date: Wed Jun 25 2025 - 10:17:00 EST
Both hid-apple and hid-magicmouse require set up a battery timer for
certain devices in order to fetch battery status. However, the timer
is being set unconditionally for all devices. This patch series
introduces checks to ensure that the battery timer is only set up for
devices that actually require it.
Aditya Garg (2):
HID: apple: avoid setting up battery timer for devices without battery
HID: magicmouse: avoid setting up battery timer when not needed
drivers/hid/hid-apple.c | 13 ++++++++-----
drivers/hid/hid-magicmouse.c | 36 +++++++++++++++++++++++-------------
2 files changed, 31 insertions(+), 18 deletions(-)
--
2.43.0