Commit 88ea12b1f89c456639e65cd1e52c6f20071fd0d8
1 parent
6d43d6a9
Use dynamic major number ( #11 )
Showing
1 changed file
with
5 additions
and
1 deletions
module/tty0tty.c
| ... | ... | @@ -58,9 +58,13 @@ short pairs = 4; //Default number of pairs of devices |
| 58 | 58 | module_param(pairs, short, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); |
| 59 | 59 | MODULE_PARM_DESC(pairs, "Number of pairs of devices to be created, maximum of 128"); |
| 60 | 60 | |
| 61 | - | |
| 61 | +#if 0 | |
| 62 | 62 | #define TTY0TTY_MAJOR 240 /* experimental range */ |
| 63 | 63 | #define TTY0TTY_MINOR 16 |
| 64 | +#else | |
| 65 | +#define TTY0TTY_MAJOR 0 /* dynamic allocation */ | |
| 66 | +#define TTY0TTY_MINOR 0 | |
| 67 | +#endif | |
| 64 | 68 | |
| 65 | 69 | /* fake UART values */ |
| 66 | 70 | //out | ... | ... |