Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jiri Slaby (SUSE) and committed by
Jiri Kosina
f740106a 5c24e4e9

-1
-1
drivers/hid/hid-apple.c
··· 79 79 struct apple_sc_backlight { 80 80 struct led_classdev cdev; 81 81 struct hid_device *hdev; 82 - unsigned short backlight_off, backlight_on_min, backlight_on_max; 83 82 }; 84 83 85 84 struct apple_sc {