Commit df2832d8a869f4c52d54d2404faca869122d1209

Authored by Craig McQueen
1 parent d92cb7be

Clarify definition of number of pseudo serial port pairs.

Showing 1 changed file with 2 additions and 1 deletions
module/tty0tty.c
@@ -48,9 +48,10 @@ MODULE_AUTHOR( DRIVER_AUTHOR ); @@ -48,9 +48,10 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
48 MODULE_DESCRIPTION( DRIVER_DESC ); 48 MODULE_DESCRIPTION( DRIVER_DESC );
49 MODULE_LICENSE("GPL"); 49 MODULE_LICENSE("GPL");
50 50
  51 +#define TINY_TTY_PAIRS 4
51 52
52 #define TINY_TTY_MAJOR 240 /* experimental range */ 53 #define TINY_TTY_MAJOR 240 /* experimental range */
53 -#define TINY_TTY_MINORS 8 /* device number, always even*/ 54 +#define TINY_TTY_MINORS (TINY_TTY_PAIRS * 2)
54 55
55 /* Serial ports are paired by adjacent index numbers -- 0 and 1, 2 and 3, 4 and 5. 56 /* Serial ports are paired by adjacent index numbers -- 0 and 1, 2 and 3, 4 and 5.
56 * I.e. same upper bits of index number; only different least-significant-bit. 57 * I.e. same upper bits of index number; only different least-significant-bit.