]> git.baikalelectronics.ru Git - kernel.git/commit
serial: tegra: Use unsigned types for RX and TX byte counts
authorJon Hunter <jonathanh@nvidia.com>
Tue, 5 May 2015 14:17:56 +0000 (15:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2015 17:12:19 +0000 (19:12 +0200)
commitc2d077974b38eb4c6e01e51b223d85b33a8863ec
tree65862d5835b3df5d5b77326d60567bdb442f2ce8
parent335d812f240acb402e4188f27864be95cfae436d
serial: tegra: Use unsigned types for RX and TX byte counts

The function tty_insert_flip_string() takes an argument "size" which is
of type size_t. This is an unsigned type. Update the count,
rx_bytes_requested and tx_bytes_requested in the tegra serial driver to
be unsigned integers so that an unsigned type is passed to
tty_insert_flip_string().

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c