Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1542640

[PATCH 3/5] irnet: ppp: move IRNET_MINOR to include/linux/miscdevice.h

From Corentin Labbe <clabbe.montjoie@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 3/5] irnet: ppp: move IRNET_MINOR to include/linux/miscdevice.h
Date 2016-12-15 12:10 +0100
Message-ID <sOC5c-52L-5@gated-at.bofh.it> (permalink)
References <sOC5c-52L-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 include/linux/miscdevice.h | 1 +
 net/irda/irnet/irnet_ppp.h | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h
index 18b2e3b..5ea0a65 100644
--- a/include/linux/miscdevice.h
+++ b/include/linux/miscdevice.h
@@ -37,6 +37,7 @@
 #define HWRNG_MINOR		183
 #define MICROCODE_MINOR		184
 #define KEYPAD_MINOR		185
+#define IRNET_MINOR		187
 #define D7S_MINOR		193
 #define VFIO_MINOR		196
 #define TUN_MINOR		200
diff --git a/net/irda/irnet/irnet_ppp.h b/net/irda/irnet/irnet_ppp.h
index 693ebc0..18fcead 100644
--- a/net/irda/irnet/irnet_ppp.h
+++ b/net/irda/irnet/irnet_ppp.h
@@ -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 */
-- 
2.10.2

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 3/5] irnet: ppp: move IRNET_MINOR to include/linux/miscdevice.h Corentin Labbe <clabbe.montjoie@gmail.com> - 2016-12-15 12:10 +0100
  Re: [PATCH 3/5] irnet: ppp: move IRNET_MINOR to  include/linux/miscdevice.h Greg KH <gregkh@linuxfoundation.org> - 2016-12-15 13:00 +0100
  Re: [PATCH 3/5] irnet: ppp: move IRNET_MINOR to  include/linux/miscdevice.h David Miller <davem@davemloft.net> - 2016-12-17 17:20 +0100

csiph-web