serial: imx: make setup_ufcr more useful
authorLucas Stach <l.stach@pengutronix.de>
Fri, 4 Sep 2015 15:52:37 +0000 (17:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 17:41:09 +0000 (18:41 +0100)
commitcc32382d9fd22dc8eebba4a245f50417267bda8e
tree58be43310accff83ca88180b20f89d76795cd096
parent7693c79ce0779e9f3ebeaee747592da42294bc5f
serial: imx: make setup_ufcr more useful

This function currently doesn't use its parameter.

Change prototype to pass in watermark levels, so we can reuse this
function in the DMA setup paths. Also relocate to be near the calling
functions.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c