serial: imx: Use RX_BUF_SIZE to set size of RX buffer
authorMartyn Welch <martyn.welch@collabora.co.uk>
Thu, 28 Sep 2017 10:07:40 +0000 (11:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Oct 2017 18:28:08 +0000 (20:28 +0200)
commitf654b23c173eb7081e1f5bd33710a53c11ea4b49
tree3ba2cf25c654199c82d2c87b6da16ecd1db45d4e
parent4139fd76cd92b350114b102f1b40b02381b198cf
serial: imx: Use RX_BUF_SIZE to set size of RX buffer

The imx serial driver uses PAGE_SIZE when allocating rx_buf, but then
uses RX_BUF_SIZE (which is currently defined as PAGE_SIZE) to describe
the length of the buffer when initialising the scatter gather list.

In order to ensure that this stays consistent, use RX_BUF_SIZE in both
locations.

Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
Acked-by: Uwe Kleine-König <u.kleine-könig@pengtronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c