]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
HID: apple: move backlight report structs to other backlight structs
authorAditya Garg <gargaditya08@live.com>
Mon, 19 May 2025 12:16:16 +0000 (17:46 +0530)
committerJiri Kosina <jkosina@suse.com>
Tue, 10 Jun 2025 19:22:29 +0000 (21:22 +0200)
The apple_backlight_config_report and apple_backlight_set_report structs
were incorrectly placed between the translation tables. Fix this.

Signed-off-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-apple.c

index ed34f5cd5a91459bd027ca56fe47e22f41b0e215..6c71baa38715960f91ed0d008f352319de89ae92 100644 (file)
@@ -89,6 +89,19 @@ struct apple_sc_backlight {
        struct hid_device *hdev;
 };
 
+struct apple_backlight_config_report {
+       u8 report_id;
+       u8 version;
+       u16 backlight_off, backlight_on_min, backlight_on_max;
+};
+
+struct apple_backlight_set_report {
+       u8 report_id;
+       u8 version;
+       u16 backlight;
+       u16 rate;
+};
+
 struct apple_magic_backlight {
        struct led_classdev cdev;
        struct hid_report *brightness;
@@ -152,20 +165,6 @@ static const struct apple_key_translation magic_keyboard_2015_fn_keys[] = {
        { }
 };
 
-struct apple_backlight_config_report {
-       u8 report_id;
-       u8 version;
-       u16 backlight_off, backlight_on_min, backlight_on_max;
-};
-
-struct apple_backlight_set_report {
-       u8 report_id;
-       u8 version;
-       u16 backlight;
-       u16 rate;
-};
-
-
 static const struct apple_key_translation apple2021_fn_keys[] = {
        { KEY_BACKSPACE, KEY_DELETE },
        { KEY_ENTER,    KEY_INSERT },