Commit d2de9601 authored by Baolin Wang's avatar Baolin Wang Committed by Greg Kroah-Hartman

serial: sprd: Fix the indentation issue

Make the macros' definition and code have the same correct indentation.
Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Acked-by: default avatarChunyan Zhang <chunyan.zhang@spreadtrum.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dd22161e
...@@ -292,8 +292,8 @@ static irqreturn_t sprd_handle_irq(int irq, void *dev_id) ...@@ -292,8 +292,8 @@ static irqreturn_t sprd_handle_irq(int irq, void *dev_id)
if (ims & SPRD_IMSR_TIMEOUT) if (ims & SPRD_IMSR_TIMEOUT)
serial_out(port, SPRD_ICLR, SPRD_ICLR_TIMEOUT); serial_out(port, SPRD_ICLR, SPRD_ICLR_TIMEOUT);
if (ims & (SPRD_IMSR_RX_FIFO_FULL | if (ims & (SPRD_IMSR_RX_FIFO_FULL | SPRD_IMSR_BREAK_DETECT |
SPRD_IMSR_BREAK_DETECT | SPRD_IMSR_TIMEOUT)) SPRD_IMSR_TIMEOUT))
sprd_rx(port); sprd_rx(port);
if (ims & SPRD_IMSR_TX_FIFO_EMPTY) if (ims & SPRD_IMSR_TX_FIFO_EMPTY)
...@@ -480,8 +480,7 @@ static void sprd_config_port(struct uart_port *port, int flags) ...@@ -480,8 +480,7 @@ static void sprd_config_port(struct uart_port *port, int flags)
port->type = PORT_SPRD; port->type = PORT_SPRD;
} }
static int sprd_verify_port(struct uart_port *port, static int sprd_verify_port(struct uart_port *port, struct serial_struct *ser)
struct serial_struct *ser)
{ {
if (ser->type != PORT_SPRD) if (ser->type != PORT_SPRD)
return -EINVAL; return -EINVAL;
...@@ -607,8 +606,7 @@ static void sprd_early_write(struct console *con, const char *s, unsigned int n) ...@@ -607,8 +606,7 @@ static void sprd_early_write(struct console *con, const char *s, unsigned int n)
uart_console_write(&dev->port, s, n, sprd_putc); uart_console_write(&dev->port, s, n, sprd_putc);
} }
static int __init sprd_early_console_setup( static int __init sprd_early_console_setup(struct earlycon_device *device,
struct earlycon_device *device,
const char *opt) const char *opt)
{ {
if (!device->port.membase) if (!device->port.membase)
...@@ -691,8 +689,8 @@ static int sprd_probe(struct platform_device *pdev) ...@@ -691,8 +689,8 @@ static int sprd_probe(struct platform_device *pdev)
index = sprd_probe_dt_alias(index, &pdev->dev); index = sprd_probe_dt_alias(index, &pdev->dev);
sprd_port[index] = devm_kzalloc(&pdev->dev, sprd_port[index] = devm_kzalloc(&pdev->dev, sizeof(*sprd_port[index]),
sizeof(*sprd_port[index]), GFP_KERNEL); GFP_KERNEL);
if (!sprd_port[index]) if (!sprd_port[index])
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment