]> git.baikalelectronics.ru Git - kernel.git/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:04:08 +0000 (11:04 +0200)
commit3df7ae5329bbb2b6ee290dfc03c48b80e84e41e5
treebd47330b171a870623b6a6ce0abdc0143d1053ee
parent36be4848f2bf70da97b7ee8d64bd66cf9fb28de5
serial: Create uart_xmit_advance()

commit 8b97ea28c8a5d6a2d6bf4d040409fe21fe84e532 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