]> git.karo-electronics.de Git - mv-sheeva.git/commit
serial: clean up parameter passing for 8250 Rx IRQ handling
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 4 Dec 2011 23:42:19 +0000 (18:42 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 Dec 2011 03:14:12 +0000 (19:14 -0800)
commit0690f41fddd285c3473e4af2a42d15bce7ff3e68
tree2df38f436c0d05bce5183f53468aa523b1ece913
parent850624c15da4651f4c6b821723419d8777659577
serial: clean up parameter passing for 8250 Rx IRQ handling

The receive_chars() was taking a pointer to a passed in LSR value
in status and knocking off bits as it processed them.  But since
receive_chars isn't returning a value, we can instead pass in
a normal non-pointer value for LSR, and simply return the
residual (unprocessed) LSR once it is done.

The value in this cleanup, is that it clarifies the API of the
receive_chars prior to exporting it to other 8250-like drivers
for shared usage.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/8250.c