OSDN Git Service

irnet: ppp: move IRNET_MINOR to include/linux/miscdevice.h
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Thu, 15 Dec 2016 10:42:48 +0000 (11:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Dec 2016 16:17:24 +0000 (11:17 -0500)
This patch move the define for IRNET_MINOR to include/linux/miscdevice.h
It is better that all minor number definitions are in the same place.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/miscdevice.h
net/irda/irnet/irnet_ppp.h

index 722698a..86d5704 100644 (file)
@@ -32,6 +32,7 @@
 #define STORE_QUEUE_MINOR      155     /* unused */
 #define I2O_MINOR              166
 #define MICROCODE_MINOR                184
+#define IRNET_MINOR            187
 #define VFIO_MINOR             196
 #define TUN_MINOR              200
 #define CUSE_MINOR             203
index 693ebc0..18fcead 100644 (file)
@@ -21,7 +21,6 @@
 
 /* /dev/irnet file constants */
 #define IRNET_MAJOR    10      /* Misc range */
-#define IRNET_MINOR    187     /* Official allocation */
 
 /* IrNET control channel stuff */
 #define IRNET_MAX_COMMAND      256     /* Max length of a command line */