diff options
| author | Aditya Garg <gargaditya08@live.com> | 2025-06-30 12:37:13 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-08-20 18:36:35 +0200 |
| commit | 983fa680193390b8d3dc4a7aa989eeccdfaa2abd (patch) | |
| tree | 141220fa8737d3f9b0430d1322f14eaab2160449 /include/linux/moduleparam.h | |
| parent | e8fb98e85f22a1487848f02abf5fcc2b784d89bc (diff) | |
HID: magicmouse: avoid setting up battery timer when not needed
commit 9bdc30e35cbc1aa78ccf01040354209f1e11ca22 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: 0b91b4e4dae6 ("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>
Diffstat (limited to 'include/linux/moduleparam.h')
0 files changed, 0 insertions, 0 deletions
