drivers: serial: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
Marek Vasut 2024-07-20 14:40:55 +02:00 committed by Tom Rini
parent 76429988da
commit 027fb6f0cb
6 changed files with 0 additions and 14 deletions

View File

@ -24,7 +24,6 @@ struct arc_serial_regs {
unsigned int baudh; unsigned int baudh;
}; };
struct arc_serial_plat { struct arc_serial_plat {
struct arc_serial_regs *reg; struct arc_serial_regs *reg;
unsigned int uartclk; unsigned int uartclk;

View File

@ -69,7 +69,6 @@ static int _linflex_serial_putc(struct linflex_fsl *base, const char c)
{ {
__raw_writeb(c, &base->bdrl); __raw_writeb(c, &base->bdrl);
if (!(__raw_readb(&base->uartsr) & UARTSR_DTF)) if (!(__raw_readb(&base->uartsr) & UARTSR_DTF))
return -EAGAIN; return -EAGAIN;
@ -197,7 +196,6 @@ U_BOOT_DRIVER(serial_linflex) = {
#include <debug_uart.h> #include <debug_uart.h>
static inline void _debug_uart_init(void) static inline void _debug_uart_init(void)
{ {
struct linflex_fsl *base = (struct linflex_fsl *)CONFIG_VAL(DEBUG_UART_BASE); struct linflex_fsl *base = (struct linflex_fsl *)CONFIG_VAL(DEBUG_UART_BASE);

View File

@ -101,7 +101,6 @@ static void lpuart_write32(u32 flags, u32 *addr, u32 val)
} }
} }
u32 __weak get_lpuart_clk(void) u32 __weak get_lpuart_clk(void)
{ {
return get_board_sys_clk(); return get_board_sys_clk();

View File

@ -31,7 +31,6 @@ static const struct udevice_id nulldev_serial_ids[] = {
{ } { }
}; };
const struct dm_serial_ops nulldev_serial_ops = { const struct dm_serial_ops nulldev_serial_ops = {
.putc = nulldev_serial_putc, .putc = nulldev_serial_putc,
.pending = nulldev_serial_pending, .pending = nulldev_serial_pending,

View File

@ -92,7 +92,6 @@ struct pl01x_priv {
#define UART_PL010_LCRH_PEN (1 << 1) #define UART_PL010_LCRH_PEN (1 << 1)
#define UART_PL010_LCRH_BRK (1 << 0) #define UART_PL010_LCRH_BRK (1 << 0)
#define UART_PL010_BAUD_460800 1 #define UART_PL010_BAUD_460800 1
#define UART_PL010_BAUD_230400 3 #define UART_PL010_BAUD_230400 3
#define UART_PL010_BAUD_115200 7 #define UART_PL010_BAUD_115200 7

View File

@ -54,7 +54,6 @@
static circbuf_t usbtty_input; static circbuf_t usbtty_input;
static circbuf_t usbtty_output; static circbuf_t usbtty_output;
/* /*
* Instance variables * Instance variables
*/ */
@ -77,7 +76,6 @@ int usbtty_configured_flag = 0;
*/ */
static char serial_number[16]; static char serial_number[16];
/* /*
* Descriptors, Strings, Local variables. * Descriptors, Strings, Local variables.
*/ */
@ -257,12 +255,10 @@ static struct rs232_emu rs232_desc={
.data_bits = 0x08 .data_bits = 0x08
}; };
/* /*
* Static Generic Serial specific data * Static Generic Serial specific data
*/ */
struct gserial_config_desc { struct gserial_config_desc {
struct usb_configuration_descriptor configuration_desc; struct usb_configuration_descriptor configuration_desc;
@ -575,28 +571,24 @@ static void usbtty_init_strings (void)
str2wide (CONFIG_USBD_MANUFACTURER, string->wData); str2wide (CONFIG_USBD_MANUFACTURER, string->wData);
usbtty_string_table[STR_MANUFACTURER]=string; usbtty_string_table[STR_MANUFACTURER]=string;
string = (struct usb_string_descriptor *) wstrProduct; string = (struct usb_string_descriptor *) wstrProduct;
string->bLength = sizeof(wstrProduct); string->bLength = sizeof(wstrProduct);
string->bDescriptorType = USB_DT_STRING; string->bDescriptorType = USB_DT_STRING;
str2wide (CONFIG_USBD_PRODUCT_NAME, string->wData); str2wide (CONFIG_USBD_PRODUCT_NAME, string->wData);
usbtty_string_table[STR_PRODUCT]=string; usbtty_string_table[STR_PRODUCT]=string;
string = (struct usb_string_descriptor *) wstrSerial; string = (struct usb_string_descriptor *) wstrSerial;
string->bLength = sizeof(serial_number); string->bLength = sizeof(serial_number);
string->bDescriptorType = USB_DT_STRING; string->bDescriptorType = USB_DT_STRING;
str2wide (serial_number, string->wData); str2wide (serial_number, string->wData);
usbtty_string_table[STR_SERIAL]=string; usbtty_string_table[STR_SERIAL]=string;
string = (struct usb_string_descriptor *) wstrConfiguration; string = (struct usb_string_descriptor *) wstrConfiguration;
string->bLength = sizeof(wstrConfiguration); string->bLength = sizeof(wstrConfiguration);
string->bDescriptorType = USB_DT_STRING; string->bDescriptorType = USB_DT_STRING;
str2wide (CFG_USBD_CONFIGURATION_STR, string->wData); str2wide (CFG_USBD_CONFIGURATION_STR, string->wData);
usbtty_string_table[STR_CONFIG]=string; usbtty_string_table[STR_CONFIG]=string;
string = (struct usb_string_descriptor *) wstrDataInterface; string = (struct usb_string_descriptor *) wstrDataInterface;
string->bLength = sizeof(wstrDataInterface); string->bLength = sizeof(wstrDataInterface);
string->bDescriptorType = USB_DT_STRING; string->bDescriptorType = USB_DT_STRING;