]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[PATCH] parport: move PP_MAJOR from ppdev.h to major.h
authorRene Herman <rene.herman@keyaccess.nl>
Sat, 25 Mar 2006 11:07:13 +0000 (03:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 16:22:53 +0000 (08:22 -0800)
Today I wondered about /dev/parport<n> after not seeing anything in
drivers/parport register char-major-99.  Having PP_MAJOR in
include/linux/major.h would've allowed me to more quickly determine that it
was the ppdev driver driving these.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/ppdev.c
include/linux/major.h
include/linux/ppdev.h

index 306ee0f091a4eb6e3920f5cea458b9a616b6ac59..bee6c47b45bdd162e33e50e32171667dd6df8df8 100644 (file)
 #include <linux/parport.h>
 #include <linux/ctype.h>
 #include <linux/poll.h>
-#include <asm/uaccess.h>
+#include <linux/major.h>
 #include <linux/ppdev.h>
 #include <linux/smp_lock.h>
 #include <linux/device.h>
+#include <asm/uaccess.h>
 
 #define PP_VERSION "ppdev: user-space parallel port driver"
 #define CHRDEV "ppdev"
index e36a46702d9411085773744b46e6afc45728618f..0a74c52924c9d60e6feb8668b4cbf3b1046d7dc3 100644 (file)
 
 #define UBD_MAJOR              98
 
+#define PP_MAJOR               99
 #define JSFD_MAJOR             99
 
 #define PHONE_MAJOR            100
index 141c96586824b4e8404ddee8e2d8ca64e5985c8c..f376a7598a782139affd060cd36323df7306c54d 100644 (file)
@@ -14,8 +14,6 @@
  * Added PPGETMODES/PPGETMODE/PPGETPHASE, Fred Barnes <frmb2@ukc.ac.uk>, 03/01/2001
  */
 
-#define PP_MAJOR       99
-
 #define PP_IOCTL       'p'
 
 /* Set mode for read/write (e.g. IEEE1284_MODE_EPP) */