]> git.sur5r.net Git - u-boot/commitdiff
serial: Replace CONFIG_ with CONFIG_IS_ENABLED
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 16 Feb 2018 00:33:27 +0000 (01:33 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 16 Feb 2018 15:43:10 +0000 (16:43 +0100)
Cosmetic change, replace CONFIG_* with CONFIG_IS_ENABLED(*) .

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
drivers/serial/serial_sh.c

index c07ddc70dc81ba198989140dca92d271fd6521c1..a17698f90ee89a3cbe39b3a2f1d6a70afdcbdd5f 100644 (file)
@@ -149,7 +149,7 @@ static int sh_serial_getc_generic(struct uart_port *port)
        return ch;
 }
 
-#ifdef CONFIG_DM_SERIAL
+#if CONFIG_IS_ENABLED(DM_SERIAL)
 
 static int sh_serial_pending(struct udevice *dev, bool input)
 {
@@ -204,7 +204,7 @@ static const struct dm_serial_ops sh_serial_ops = {
        .setbrg = sh_serial_setbrg,
 };
 
-#ifdef CONFIG_OF_CONTROL
+#if CONFIG_IS_ENABLED(OF_CONTROL)
 static const struct udevice_id sh_serial_id[] ={
        {.compatible = "renesas,sci", .data = PORT_SCI},
        {.compatible = "renesas,scif", .data = PORT_SCIF},