mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Corentin Labbe <clabbe.montjoie@gmail.com>
To: willy@haproxy.com, ksenija.stanojevic@gmail.com, arnd@arndb.de,
	gregkh@linuxfoundation.org
Cc: linux-kernel@vger.kernel.org, Corentin Labbe <clabbe.montjoie@gmail.com>
Subject: [PATCH] misc: panel: move LCD_MINOR and KEYPAD_MINOR to include/linux/miscdevice.h
Date: Thu, 15 Dec 2016 20:43:52 +0100	[thread overview]
Message-ID: <20161215194352.9729-1-clabbe.montjoie@gmail.com> (raw)

This patch move the define for LCD_MINOR and KEYPAD_MINOR to include/linux/miscdevice.h.
It's better that all minor number definitions are in the same place.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
 drivers/misc/panel.c       | 3 ---
 include/linux/miscdevice.h | 2 ++
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/misc/panel.c b/drivers/misc/panel.c
index 6030ac5..b05c3c7 100644
--- a/drivers/misc/panel.c
+++ b/drivers/misc/panel.c
@@ -61,9 +61,6 @@
 #include <linux/io.h>
 #include <linux/uaccess.h>
 
-#define LCD_MINOR		156
-#define KEYPAD_MINOR		185
-
 #define PANEL_VERSION		"0.9.5"
 
 #define LCD_MAXBYTES		256	/* max burst write */
diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h
index b1ba37aef..7efc045 100644
--- a/include/linux/miscdevice.h
+++ b/include/linux/miscdevice.h
@@ -30,9 +30,11 @@
 #define NVRAM_MINOR		144
 #define SGI_MMTIMER		153
 #define STORE_QUEUE_MINOR	155	/* unused */
+#define LCD_MINOR		156
 #define I2O_MINOR		166
 #define HWRNG_MINOR		183
 #define MICROCODE_MINOR		184
+#define KEYPAD_MINOR		185
 #define D7S_MINOR		193
 #define VFIO_MINOR		196
 #define TUN_MINOR		200
-- 
2.10.2

             reply	other threads:[~2016-12-15 19:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-15 19:43 Corentin Labbe [this message]
2017-01-10 17:37 ` Greg KH

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=20161215194352.9729-1-clabbe.montjoie@gmail.com \
    --to=clabbe.montjoie@gmail.com \
    --cc=arnd@arndb.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=ksenija.stanojevic@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=willy@haproxy.com \
    /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®