From df2832d8a869f4c52d54d2404faca869122d1209 Mon Sep 17 00:00:00 2001 From: Craig McQueen Date: Thu, 4 Jul 2013 17:40:15 +1000 Subject: [PATCH] Clarify definition of number of pseudo serial port pairs. --- module/tty0tty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/tty0tty.c b/module/tty0tty.c index b4504c0..cd10e68 100644 --- a/module/tty0tty.c +++ b/module/tty0tty.c @@ -48,9 +48,10 @@ MODULE_AUTHOR( DRIVER_AUTHOR ); MODULE_DESCRIPTION( DRIVER_DESC ); MODULE_LICENSE("GPL"); +#define TINY_TTY_PAIRS 4 #define TINY_TTY_MAJOR 240 /* experimental range */ -#define TINY_TTY_MINORS 8 /* device number, always even*/ +#define TINY_TTY_MINORS (TINY_TTY_PAIRS * 2) /* Serial ports are paired by adjacent index numbers -- 0 and 1, 2 and 3, 4 and 5. * I.e. same upper bits of index number; only different least-significant-bit. -- libgit2 0.21.4