serial: tegra: Add helper function for handling RX buffer
authorJon Hunter <jonathanh@nvidia.com>
Fri, 9 Oct 2015 13:50:02 +0000 (14:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:07:57 +0000 (21:07 -0700)
commit32ede4a51754cb62b0d43d91cb7c4e3c57069a9c
tree0244e41e96e47bef06e1438f08dc98620d54e791
parentb0e066ccb5b2c474385fe10dbb385bde10738177
serial: tegra: Add helper function for handling RX buffer

In the tegra UART driver there are three places where the RX DMA buffer
is handled and pushed up to the tty layer. In all three instances the
same functions are called and so instead of duplicating the code in three
places, move this code to a new helper function and use this new function.

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