serial: core: Extract uart_alloc_xmit_buf() and uart_free_xmit_buf()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 9 Apr 2024 17:40:57 +0000 (20:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 11:10:51 +0000 (13:10 +0200)
commitabcd8632f26bbc24c4364b9cdf4feb8c9828c0c6
tree0ab7aabdec19ef6af9d81d8a5c05a5f9d6341dcb
parent5f1149d2f4bff6269f04cceaf1038d6e80d27a62
serial: core: Extract uart_alloc_xmit_buf() and uart_free_xmit_buf()

After conversion to the kfifo, it becomes possible to extract two helper
functions for better maintenance and code deduplication. Do it here.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240409174057.1104262-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c