Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] parport: move PP_MAJOR from ppdev.h to major.h

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>

authored by

Rene Herman and committed by
Linus Torvalds
e6a67846 1efa6469

+3 -3
+2 -1
drivers/char/ppdev.c
··· 65 65 #include <linux/parport.h> 66 66 #include <linux/ctype.h> 67 67 #include <linux/poll.h> 68 - #include <asm/uaccess.h> 68 + #include <linux/major.h> 69 69 #include <linux/ppdev.h> 70 70 #include <linux/smp_lock.h> 71 71 #include <linux/device.h> 72 + #include <asm/uaccess.h> 72 73 73 74 #define PP_VERSION "ppdev: user-space parallel port driver" 74 75 #define CHRDEV "ppdev"
+1
include/linux/major.h
··· 113 113 114 114 #define UBD_MAJOR 98 115 115 116 + #define PP_MAJOR 99 116 117 #define JSFD_MAJOR 99 117 118 118 119 #define PHONE_MAJOR 100
-2
include/linux/ppdev.h
··· 14 14 * Added PPGETMODES/PPGETMODE/PPGETPHASE, Fred Barnes <frmb2@ukc.ac.uk>, 03/01/2001 15 15 */ 16 16 17 - #define PP_MAJOR 99 18 - 19 17 #define PP_IOCTL 'p' 20 18 21 19 /* Set mode for read/write (e.g. IEEE1284_MODE_EPP) */