diff options
author | 2024-02-01 12:53:14 +0100 | |
---|---|---|
committer | 2024-02-13 11:43:55 +0100 | |
commit | f740106aedd36a1ea2884ac78345e794ebb4040a (patch) | |
tree | 4c8c161f09bf987ce6d62632e1e3c93c3be2b100 /drivers/hid | |
parent | Merge tag 'hid-for-linus-2024020101' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
download | linux-f740106aedd36a1ea2884ac78345e794ebb4040a.tar.gz linux-f740106aedd36a1ea2884ac78345e794ebb4040a.tar.bz2 linux-f740106aedd36a1ea2884ac78345e794ebb4040a.zip |
HID: apple: remove unused members from struct apple_sc_backlight
The backlight members in struct apple_sc_backlight are unused. They were
added in commit 9018eacbe623 (HID: apple: Add support for keyboard
backlight on certain T2 Macs.), but never used.
As this is not a struct to communicate with the HW, remove these.
Found by https://github.com/jirislaby/clang-struct.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Paul Pawlowski <paul@mrarm.io>
Cc: Aun-Ali Zaidi <admin@kodeit.net>
Cc: Aditya Garg <gargaditya08@live.com>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-apple.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c index b9c7c0ed7bcc..bd022e004356 100644 --- a/drivers/hid/hid-apple.c +++ b/drivers/hid/hid-apple.c @@ -79,7 +79,6 @@ struct apple_non_apple_keyboard { struct apple_sc_backlight { struct led_classdev cdev; struct hid_device *hdev; - unsigned short backlight_off, backlight_on_min, backlight_on_max; }; struct apple_sc { |