tty: serial: qcom-geni-serial: refactor qcom_geni_serial_send_chunk_fifo()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 29 Dec 2022 15:50:26 +0000 (16:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 14:08:25 +0000 (15:08 +0100)
commitbd7955840cbefd0efffd0e2e9c14b2e6f77eb94c
tree4808c2ff876b3f1a06f5a08908f7681610dd2ee7
parentd420fb491cbcd948e6aa6057616a128d7697ade0
tty: serial: qcom-geni-serial: refactor qcom_geni_serial_send_chunk_fifo()

Shuffle the code a bit, drop unneeded variables, make types of others
more consistent and use uart_xmit_advance() instead of handling
tail->xmit manually.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20221229155030.418800-11-brgl@bgdev.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c