Skip to contentSkip to conversation

misc: panel: move LCD_MINOR and KEYPAD_MINOR to include/linux/miscdevice.h

PATCH In review Corentin Labbe 2 participants 2 messages Dec 15, 2016 – Jan 10, 2017 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: panel: move LCD_MINOR and KEYPAD_MINOR to include/linux/miscdevice.h

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.

---
 drivers/misc/panel.c       | 3 ---
 include/linux/miscdevice.h | 2 ++
 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/misc/panel.c +0 -3
index 6030ac5..b05c3c7 100644
@@ -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 */
include/linux/miscdevice.h +2 -0
index b1ba37aef..7efc045 100644
@@ -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
Signature · 1 line
2.10.2
maintainer
#1 lore raw
Quoted 29 lines · Corentin Labbe

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.

---
 drivers/misc/panel.c       | 3 ---
 include/linux/miscdevice.h | 2 ++
 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/misc/panel.c +0 -3
index 6030ac5..b05c3c7 100644
@@ -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 */
include/linux/miscdevice.h +0 -0
index b1ba37aef..7efc045 100644
@@ -30,9 +30,11 @@
 #define NVRAM_MINOR		144

include/linux/miscdevice.h line 40

Quoted 10 lines
include/linux/miscdevice.h +2 -0
 #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

Doesn't apply to my tree :(