mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 18:04:48 +00:00
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:
parent
76429988da
commit
027fb6f0cb
6 changed files with 0 additions and 14 deletions
|
@ -24,7 +24,6 @@ struct arc_serial_regs {
|
|||
unsigned int baudh;
|
||||
};
|
||||
|
||||
|
||||
struct arc_serial_plat {
|
||||
struct arc_serial_regs *reg;
|
||||
unsigned int uartclk;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue