From: Olaf Luijks <oluijks@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Staging: braille_console: fixed 3 warn, 1 err (using checkpatch)
Date: Thu, 5 Jan 2017 01:07:25 +0100 [thread overview]
Message-ID: <20170105000725.6p224dn2zck6dsu4@yoda> (raw)
Fixed some coding style issues.
- ERROR: Use 4 digit octal (0777) not decimal permissions (48)
- WARNING: Missing a blank line after declarations (241, 280, 288)
Signed-off-by: Olaf Luijks <oluijks@gmail.com>
---
drivers/accessibility/braille/braille_console.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/accessibility/braille/braille_console.c b/drivers/accessibility/braille/braille_console.c
index dc34a5b..340fda0 100644
--- a/drivers/accessibility/braille/braille_console.c
+++ b/drivers/accessibility/braille/braille_console.c
@@ -45,7 +45,7 @@ MODULE_LICENSE("GPL");
/* Emit various sounds */
static bool sound;
-module_param(sound, bool, 0);
+module_param(sound, bool, 0000);
MODULE_PARM_DESC(sound, "emit sounds");
static void beep(unsigned int freq)
@@ -238,6 +238,7 @@ static int keyboard_notifier_call(struct notifier_block *blk,
case KBD_POST_KEYSYM:
{
unsigned char type = KTYP(param->value) - 0xf0;
+
if (type == KT_SPEC) {
unsigned char val = KVAL(param->value);
int on_off = -1;
@@ -277,6 +278,7 @@ static int vt_notifier_call(struct notifier_block *blk,
{
struct vt_notifier_param *param = _param;
struct vc_data *vc = param->vc;
+
switch (code) {
case VT_ALLOCATE:
break;
@@ -285,6 +287,7 @@ static int vt_notifier_call(struct notifier_block *blk,
case VT_WRITE:
{
unsigned char c = param->c;
+
if (vc->vc_num != fg_console)
break;
switch (c) {
--
2.9.0
reply other threads:[~2017-01-05 0:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20170105000725.6p224dn2zck6dsu4@yoda \
--to=oluijks@gmail.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®