X86 platform drivers
 help / color / mirror / Atom feed
From: "Michał Kępień" <kernel@kempniu.pl>
To: Jonathan Woithe <jwoithe@just42.net>,
	Darren Hart <dvhart@infradead.org>,
	Andy Shevchenko <andy@infradead.org>
Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 4/7] platform/x86: fujitsu-laptop: Clearly distinguish module parameters
Date: Sun, 11 Feb 2018 22:07:24 +0100	[thread overview]
Message-ID: <20180211210727.12130-5-kernel@kempniu.pl> (raw)
In-Reply-To: <20180211210727.12130-1-kernel@kempniu.pl>

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>
---
 drivers/platform/x86/fujitsu-laptop.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/fujitsu-laptop.c b/drivers/platform/x86/fujitsu-laptop.c
index 94ff7f86fa8f..7888b779d6c5 100644
--- a/drivers/platform/x86/fujitsu-laptop.c
+++ b/drivers/platform/x86/fujitsu-laptop.c
@@ -112,6 +112,10 @@
 #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 {
-- 
2.16.1

  parent reply	other threads:[~2018-02-11 21:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-11 21:07 [PATCH 0/7] fujitsu-laptop: Miscellaneous cleanups Michał Kępień
2018-02-11 21:07 ` [PATCH 1/7] platform/x86: fujitsu-laptop: Unify local variable naming Michał Kępień
2018-02-11 21:07 ` [PATCH 2/7] platform/x86: fujitsu-laptop: Defer input device registration Michał Kępień
2018-02-11 21:07 ` [PATCH 3/7] platform/x86: fujitsu-laptop: Simplify error paths Michał Kępień
2018-02-11 21:07 ` Michał Kępień [this message]
2018-02-11 21:07 ` [PATCH 5/7] platform/x86: fujitsu-laptop: Do not include linux/slab.h Michał Kępień
2018-02-11 21:07 ` [PATCH 6/7] platform/x86: fujitsu-laptop: Define constants for backlight power control Michał Kępień
2018-02-16 10:50   ` Jonathan Woithe
2018-02-11 21:07 ` [PATCH 7/7] platform/x86: fujitsu-laptop: Clean up constants Michał Kępień
2018-02-11 21:20   ` Randy Dunlap
2018-02-11 21:35     ` Michał Kępień
2018-02-16 10:57 ` [PATCH 0/7] fujitsu-laptop: Miscellaneous cleanups Jonathan Woithe
2018-02-16 19:37 ` Darren Hart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180211210727.12130-5-kernel@kempniu.pl \
    --to=kernel@kempniu.pl \
    --cc=andy@infradead.org \
    --cc=dvhart@infradead.org \
    --cc=jwoithe@just42.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox