diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2017-09-27 22:41:26 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-08-16 07:46:41 +0200 |
commit | 6b583a64fd1e019fd01626b46892ebf2361951c5 (patch) | |
tree | aefcf8e4d237b153f6bb1594dcf5773fc354be49 /drivers/rtc/rtc-ds1307.c | |
parent | rtc: s5m: Add SPDX license identifier (diff) | |
download | linux-6b583a64fd1e019fd01626b46892ebf2361951c5.tar.xz linux-6b583a64fd1e019fd01626b46892ebf2361951c5.zip |
rtc: ds1307: simplify hwmon config
We don't have to define an extra config symbol, IS_REACHABLE does
what we need. And having this config symbol just to save the few
bytes of hwmon support on non-DS3231 chips isn't worth it IMO
(especially as the symbol is set per default).
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-ds1307.c')
-rw-r--r-- | drivers/rtc/rtc-ds1307.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 0162a600ff1b..4b2b4627daeb 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -1042,7 +1042,7 @@ static u8 ds1307_trickle_init(struct ds1307 *ds1307, /*----------------------------------------------------------------------*/ -#ifdef CONFIG_RTC_DRV_DS1307_HWMON +#if IS_REACHABLE(CONFIG_HWMON) /* * Temperature sensor support for ds3231 devices. |