Skip to content

Commit 4e960bb

Browse files
AdityaGarg8Jiri Kosina
authored andcommitted
HID: apple: move backlight report structs to other backlight structs
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 2043ae9 commit 4e960bb

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

drivers/hid/hid-apple.c

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,19 @@ struct apple_sc_backlight {
8989
struct hid_device *hdev;
9090
};
9191

92+
struct apple_backlight_config_report {
93+
u8 report_id;
94+
u8 version;
95+
u16 backlight_off, backlight_on_min, backlight_on_max;
96+
};
97+
98+
struct apple_backlight_set_report {
99+
u8 report_id;
100+
u8 version;
101+
u16 backlight;
102+
u16 rate;
103+
};
104+
92105
struct apple_magic_backlight {
93106
struct led_classdev cdev;
94107
struct hid_report *brightness;
@@ -152,20 +165,6 @@ static const struct apple_key_translation magic_keyboard_2015_fn_keys[] = {
152165
{ }
153166
};
154167

155-
struct apple_backlight_config_report {
156-
u8 report_id;
157-
u8 version;
158-
u16 backlight_off, backlight_on_min, backlight_on_max;
159-
};
160-
161-
struct apple_backlight_set_report {
162-
u8 report_id;
163-
u8 version;
164-
u16 backlight;
165-
u16 rate;
166-
};
167-
168-
169168
static const struct apple_key_translation apple2021_fn_keys[] = {
170169
{ KEY_BACKSPACE, KEY_DELETE },
171170
{ KEY_ENTER, KEY_INSERT },

0 commit comments

Comments
 (0)