aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2006-12-08 05:38:34 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:55 -0500
commita8b74de92ef5b53d45d32934955cbb6e14812a5f (patch)
treed3221aeab745f7d66272e5ec4f6ee24cbeffdda9 /drivers/char
parent2094e757afb9ecf2daf433e54e02b61f99bf487f (diff)
[PATCH] Char: mxser_new, clean macros
Celan redundant macros. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/mxser_new.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c
index c06c5920bf1c..355fbf2e4446 100644
--- a/drivers/char/mxser_new.c
+++ b/drivers/char/mxser_new.c
@@ -54,11 +54,10 @@
54#define MXSERCUMAJOR 175 54#define MXSERCUMAJOR 175
55 55
56#define MXSER_EVENT_TXLOW 1 56#define MXSER_EVENT_TXLOW 1
57#define MXSER_EVENT_HANGUP 2
58 57
59#define MXSER_BOARDS 4 /* Max. boards */ 58#define MXSER_BOARDS 4 /* Max. boards */
60#define MXSER_PORTS 32 /* Max. ports */
61#define MXSER_PORTS_PER_BOARD 8 /* Max. ports per board */ 59#define MXSER_PORTS_PER_BOARD 8 /* Max. ports per board */
60#define MXSER_PORTS (MXSER_BOARDS * MXSER_PORTS_PER_BOARD)
62#define MXSER_ISR_PASS_LIMIT 99999L 61#define MXSER_ISR_PASS_LIMIT 99999L
63 62
64#define MXSER_ERR_IOADDR -1 63#define MXSER_ERR_IOADDR -1
@@ -66,9 +65,6 @@
66#define MXSER_ERR_IRQ_CONFLIT -3 65#define MXSER_ERR_IRQ_CONFLIT -3
67#define MXSER_ERR_VECTOR -4 66#define MXSER_ERR_VECTOR -4
68 67
69#define SERIAL_TYPE_NORMAL 1
70#define SERIAL_TYPE_CALLOUT 2
71
72#define WAKEUP_CHARS 256 68#define WAKEUP_CHARS 256
73 69
74#define UART_MCR_AFE 0x20 70#define UART_MCR_AFE 0x20
@@ -365,14 +361,10 @@ static void process_txrx_fifo(struct mxser_port *info)
365static void mxser_do_softint(void *private_) 361static void mxser_do_softint(void *private_)
366{ 362{
367 struct mxser_port *info = private_; 363 struct mxser_port *info = private_;
368 struct tty_struct *tty; 364 struct tty_struct *tty = info->tty;
369
370 tty = info->tty;
371 365
372 if (test_and_clear_bit(MXSER_EVENT_TXLOW, &info->event)) 366 if (test_and_clear_bit(MXSER_EVENT_TXLOW, &info->event))
373 tty_wakeup(tty); 367 tty_wakeup(tty);
374 if (test_and_clear_bit(MXSER_EVENT_HANGUP, &info->event))
375 tty_hangup(tty);
376} 368}
377 369
378static unsigned char mxser_get_msr(int baseaddr, int mode, int port) 370static unsigned char mxser_get_msr(int baseaddr, int mode, int port)