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) <[email protected]> Cc: Paul Pawlowski <[email protected]> Cc: Aun-Ali Zaidi <[email protected]> Cc: Aditya Garg <[email protected]> Cc: Jiri Kosina <[email protected]> Cc: Benjamin Tissoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 5c24e4e commit f740106

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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)