[PATCH] consolidate line discipline number definitions
The line discipline numbers N_* are currently defined for each architecture individually, but (except for a seeming mistake) identically, in asm/termios.h. There is no obvious reason why these numbers should be architecture specific, nor any apparent relationship with the termios structure. The total number of these, NR_LDISCS, is defined in linux/tty.h anyway. So I propose the following patch which moves the definitions of the individual line disciplines to linux/tty.h too. Three of these numbers (N_MASC, N_PROFIBUS_FDL, and N_SMSBLOCK) are unused in the current kernel, but the patch still keeps the complete set in case there are plans to use them yet. Signed-off-by:Tilman Schmidt <tilman@imap.cc> Cc: <linux-arch@vger.kernel.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/sparc/kernel/sunos_ioctl.c 1 addition, 0 deletionsarch/sparc/kernel/sunos_ioctl.c
- arch/sparc64/kernel/sunos_ioctl32.c 1 addition, 0 deletionsarch/sparc64/kernel/sunos_ioctl32.c
- include/asm-alpha/termios.h 0 additions, 18 deletionsinclude/asm-alpha/termios.h
- include/asm-arm/termios.h 0 additions, 18 deletionsinclude/asm-arm/termios.h
- include/asm-arm26/termios.h 0 additions, 18 deletionsinclude/asm-arm26/termios.h
- include/asm-avr32/termios.h 0 additions, 18 deletionsinclude/asm-avr32/termios.h
- include/asm-cris/termios.h 0 additions, 18 deletionsinclude/asm-cris/termios.h
- include/asm-frv/termios.h 0 additions, 18 deletionsinclude/asm-frv/termios.h
- include/asm-h8300/termios.h 0 additions, 18 deletionsinclude/asm-h8300/termios.h
- include/asm-i386/termios.h 0 additions, 18 deletionsinclude/asm-i386/termios.h
- include/asm-ia64/termios.h 0 additions, 18 deletionsinclude/asm-ia64/termios.h
- include/asm-m32r/termios.h 0 additions, 18 deletionsinclude/asm-m32r/termios.h
- include/asm-m68k/termios.h 0 additions, 18 deletionsinclude/asm-m68k/termios.h
- include/asm-mips/termios.h 0 additions, 18 deletionsinclude/asm-mips/termios.h
- include/asm-parisc/termios.h 0 additions, 18 deletionsinclude/asm-parisc/termios.h
- include/asm-powerpc/termios.h 0 additions, 18 deletionsinclude/asm-powerpc/termios.h
- include/asm-s390/termios.h 0 additions, 18 deletionsinclude/asm-s390/termios.h
- include/asm-sh/termios.h 0 additions, 18 deletionsinclude/asm-sh/termios.h
- include/asm-sh64/termios.h 0 additions, 18 deletionsinclude/asm-sh64/termios.h
- include/asm-sparc/termios.h 0 additions, 18 deletionsinclude/asm-sparc/termios.h
Loading
Please register or sign in to comment