[SERIAL] Convert fifosize to an unsigned int
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 2 Jul 2006 19:45:51 +0000 (20:45 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 2 Jul 2006 19:45:51 +0000 (20:45 +0100)
commit947deee8904b3c2edc7f59ab6e6242499e4dc434
tree76f7c5b98508df4b6dea7b8dc01d973b9df43e60
parent4faf4e0e7d4e1935fbfc5043d3ebd8d51a3d898d
[SERIAL] Convert fifosize to an unsigned int

Some UARTs have more than 255 bytes of FIFO, which can't be
represented by an unsigned char.  Change the kernel's internal
structure to be an unsigned int, but still export an unsigned char
via the TIOCGSERIAL ioctl.  If the TIOCSSERIAL ioctl provides a
fifo size of 0, assume this means "don't change" otherwise we'll
corrupt the larger fifo sizes.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/mpc52xx_uart.c
drivers/serial/serial_core.c
include/linux/serial_core.h