Re: [PATCH] rtc: Use IS_ENABLED() instead of checking for built-in or module

From: Alexandre Belloni
Date: Tue May 03 2016 - 05:55:49 EST


On 26/04/2016 at 18:17:35 -0400, Javier Martinez Canillas wrote :
> The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
> built-in or as a module, use that macro instead of open coding the same.
>
> Signed-off-by: Javier Martinez Canillas <javier@xxxxxxxxxxxxxxx>
>
> ---
>
> drivers/rtc/rtc-cmos.c | 2 +-
> drivers/rtc/rtc-mrst.c | 2 +-
> drivers/rtc/rtc-rs5c372.c | 8 ++++----
> 3 files changed, 6 insertions(+), 6 deletions(-)
>
Applied, thanks.

--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com