[PATCH 30/40] drivers: serial: Remove duplicate newlines

Marek Vasut marek.vasut+renesas at mailbox.org
Sat Jul 20 14:40:55 CEST 2024


Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
 drivers/serial/serial_arc.c            | 1 -
 drivers/serial/serial_linflexuart.c    | 2 --
 drivers/serial/serial_lpuart.c         | 1 -
 drivers/serial/serial_nulldev.c        | 1 -
 drivers/serial/serial_pl01x_internal.h | 1 -
 drivers/serial/usbtty.c                | 8 --------
 6 files changed, 14 deletions(-)

diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c
index c0930cf7334..a7e566bd23f 100644
--- a/drivers/serial/serial_arc.c
+++ b/drivers/serial/serial_arc.c
@@ -24,7 +24,6 @@ struct arc_serial_regs {
 	unsigned int baudh;
 };
 
-
 struct arc_serial_plat {
 	struct arc_serial_regs *reg;
 	unsigned int uartclk;
diff --git a/drivers/serial/serial_linflexuart.c b/drivers/serial/serial_linflexuart.c
index ff66e69b9d7..24ecb236d51 100644
--- a/drivers/serial/serial_linflexuart.c
+++ b/drivers/serial/serial_linflexuart.c
@@ -69,7 +69,6 @@ static int _linflex_serial_putc(struct linflex_fsl *base, const char c)
 {
 	__raw_writeb(c, &base->bdrl);
 
-
 	if (!(__raw_readb(&base->uartsr) & UARTSR_DTF))
 		return -EAGAIN;
 
@@ -197,7 +196,6 @@ U_BOOT_DRIVER(serial_linflex) = {
 
 #include <debug_uart.h>
 
-
 static inline void _debug_uart_init(void)
 {
 	struct linflex_fsl *base = (struct linflex_fsl *)CONFIG_VAL(DEBUG_UART_BASE);
diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c
index a06e6dc2505..93602797b83 100644
--- a/drivers/serial/serial_lpuart.c
+++ b/drivers/serial/serial_lpuart.c
@@ -101,7 +101,6 @@ static void lpuart_write32(u32 flags, u32 *addr, u32 val)
 	}
 }
 
-
 u32 __weak get_lpuart_clk(void)
 {
 	return get_board_sys_clk();
diff --git a/drivers/serial/serial_nulldev.c b/drivers/serial/serial_nulldev.c
index 78a9e0b195f..e2c6dec5e32 100644
--- a/drivers/serial/serial_nulldev.c
+++ b/drivers/serial/serial_nulldev.c
@@ -31,7 +31,6 @@ static const struct udevice_id nulldev_serial_ids[] = {
 	{ }
 };
 
-
 const struct dm_serial_ops nulldev_serial_ops = {
 	.putc = nulldev_serial_putc,
 	.pending = nulldev_serial_pending,
diff --git a/drivers/serial/serial_pl01x_internal.h b/drivers/serial/serial_pl01x_internal.h
index 71c52bb5312..7ae3ae50908 100644
--- a/drivers/serial/serial_pl01x_internal.h
+++ b/drivers/serial/serial_pl01x_internal.h
@@ -92,7 +92,6 @@ struct pl01x_priv {
 #define UART_PL010_LCRH_PEN             (1 << 1)
 #define UART_PL010_LCRH_BRK             (1 << 0)
 
-
 #define UART_PL010_BAUD_460800            1
 #define UART_PL010_BAUD_230400            3
 #define UART_PL010_BAUD_115200            7
diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c
index ae3ac8070d3..b7d77fbb6a9 100644
--- a/drivers/serial/usbtty.c
+++ b/drivers/serial/usbtty.c
@@ -54,7 +54,6 @@
 static circbuf_t usbtty_input;
 static circbuf_t usbtty_output;
 
-
 /*
  * Instance variables
  */
@@ -77,7 +76,6 @@ int usbtty_configured_flag = 0;
  */
 static char serial_number[16];
 
-
 /*
  * Descriptors, Strings, Local variables.
  */
@@ -257,12 +255,10 @@ static struct rs232_emu rs232_desc={
 		.data_bits	=	0x08
 };
 
-
 /*
  * Static Generic Serial specific data
  */
 
-
 struct gserial_config_desc {
 
 	struct usb_configuration_descriptor configuration_desc;
@@ -575,28 +571,24 @@ static void usbtty_init_strings (void)
 	str2wide (CONFIG_USBD_MANUFACTURER, string->wData);
 	usbtty_string_table[STR_MANUFACTURER]=string;
 
-
 	string = (struct usb_string_descriptor *) wstrProduct;
 	string->bLength = sizeof(wstrProduct);
 	string->bDescriptorType = USB_DT_STRING;
 	str2wide (CONFIG_USBD_PRODUCT_NAME, string->wData);
 	usbtty_string_table[STR_PRODUCT]=string;
 
-
 	string = (struct usb_string_descriptor *) wstrSerial;
 	string->bLength = sizeof(serial_number);
 	string->bDescriptorType = USB_DT_STRING;
 	str2wide (serial_number, string->wData);
 	usbtty_string_table[STR_SERIAL]=string;
 
-
 	string = (struct usb_string_descriptor *) wstrConfiguration;
 	string->bLength = sizeof(wstrConfiguration);
 	string->bDescriptorType = USB_DT_STRING;
 	str2wide (CFG_USBD_CONFIGURATION_STR, string->wData);
 	usbtty_string_table[STR_CONFIG]=string;
 
-
 	string = (struct usb_string_descriptor *) wstrDataInterface;
 	string->bLength = sizeof(wstrDataInterface);
 	string->bDescriptorType = USB_DT_STRING;
-- 
2.43.0



More information about the U-Boot mailing list