Files
Aditya Garg 983fa68019 HID: magicmouse: avoid setting up battery timer when not needed
commit 9bdc30e35c upstream.

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: 0b91b4e4da ("HID: magicmouse: Report battery level 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>
2025-08-20 18:36:35 +02:00
..
2023-10-25 18:33:42 +02:00
2024-08-29 10:39:37 +02:00
2024-09-27 08:18:43 -07:00