platform/x86: fujitsu-laptop: Clearly distinguish module parameters
authorMichał Kępień <kernel@kempniu.pl>
Sun, 11 Feb 2018 21:07:24 +0000 (22:07 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Sat, 24 Feb 2018 21:37:36 +0000 (13:37 -0800)
In order to improve code clarity, move declarations of variables that
are module parameters higher up and add a comment.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/fujitsu-laptop.c

index 94ff7f86fa8f8f7ab584a6ea0b1f588985e5bc54..7888b779d6c5774fef1cc653afd883090006b801 100644 (file)
 #define MAX_HOTKEY_RINGBUFFER_SIZE 100
 #define RINGBUFFERSIZE 40
 
+/* Module parameters */
+static int use_alt_lcd_levels = -1;
+static bool disable_brightness_adjust;
+
 /* Device controlling the backlight and associated keys */
 struct fujitsu_bl {
        struct input_dev *input;
@@ -122,8 +126,6 @@ struct fujitsu_bl {
 };
 
 static struct fujitsu_bl *fujitsu_bl;
-static int use_alt_lcd_levels = -1;
-static bool disable_brightness_adjust;
 
 /* Device used to access hotkeys and other features on the laptop */
 struct fujitsu_laptop {