diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2018-02-16 01:33:27 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-02-16 16:43:10 +0100 |
commit | 5c44ddcb13ebb3098c9d20f58e0179c4d39cb5cb (patch) | |
tree | dc5cee3854fd83563ac66ecacd64be0d1eefb5fb /drivers | |
parent | 974147b4373f49e10a22de43ba643f49431f9d18 (diff) | |
download | u-boot-5c44ddcb13ebb3098c9d20f58e0179c4d39cb5cb.tar.gz |
serial: Replace CONFIG_ with CONFIG_IS_ENABLED
Cosmetic change, replace CONFIG_* with CONFIG_IS_ENABLED(*) .
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/serial_sh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c index c07ddc70dc..a17698f90e 100644 --- a/drivers/serial/serial_sh.c +++ b/drivers/serial/serial_sh.c @@ -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}, |