]> git.itanic.dy.fi Git - linux-stable/commit
serial: Create uart_xmit_advance()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 1 Sep 2022 14:39:32 +0000 (17:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:32:22 +0000 (11:32 +0200)
commitf387ca14c73ff0607f83fa1948ee20cb8f8f64b8
tree5c449ca2f7956126229cb10ff388e2c9502a02a0
parentdc4b06e21691e167763d3ecce715a5144a8e8ab7
serial: Create uart_xmit_advance()

commit e77cab77f2cb3a1ca2ba8df4af45bb35617ac16d upstream.

A very common pattern in the drivers is to advance xmit tail
index and do bookkeeping of Tx'ed characters. Create
uart_xmit_advance() to handle it.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220901143934.8850-2-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/serial_core.h