[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID:
<PN3PR01MB95973218D6B4ECDAE8ECF60BB87BA@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM>
Date: Wed, 25 Jun 2025 19:46:02 +0530
From: Aditya Garg <gargaditya08@...e.com>
To: Jiri Kosina <jikos@...nel.org>,
Benjamin Tissoires <bentiss@...nel.org>
Cc: linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org,
José Expósito <jose.exposito89@...il.com>
Subject: [PATCH 0/2] HID: avoid setting up battery timer when not needed in hid-apple and magicmouse
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
Powered by blists - more mailing lists