Skip to content

Commit f740106

Browse files
Jiri Slaby (SUSE)Jiri Kosina
authored andcommitted
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 9018eac (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>
1 parent 5c24e4e commit f740106

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/hid/hid-apple.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ struct apple_non_apple_keyboard {
7979
struct apple_sc_backlight {
8080
struct led_classdev cdev;
8181
struct hid_device *hdev;
82-
unsigned short backlight_off, backlight_on_min, backlight_on_max;
8382
};
8483

8584
struct apple_sc {

0 commit comments

Comments
 (0)