HID: apple: remove unused members from struct apple_sc_backlight
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Thu, 1 Feb 2024 11:53:14 +0000 (12:53 +0100)
committerJiri Kosina <jkosina@suse.com>
Tue, 13 Feb 2024 10:43:55 +0000 (11:43 +0100)
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>
drivers/hid/hid-apple.c

index b9c7c0ed7bcc37e426f460d8292659fc3246b126..bd022e0043569cc84c5323a53749e06f122dbcbe 100644 (file)
@@ -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 {