diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2020-09-24 12:52:55 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-10-27 12:18:28 +0100 |
commit | 5d78533a0c53af9659227c803df944ba27cd56e0 (patch) | |
tree | 3c8e37b0013d3dc5e6192ccaec3eb56349c2a9ca /drivers/rtc/rtc-sa1100.h | |
parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) | |
download | lwn-5d78533a0c53af9659227c803df944ba27cd56e0.tar.gz lwn-5d78533a0c53af9659227c803df944ba27cd56e0.zip |
rtc: pcf2127: move watchdog initialisation to a separate function
The obvious advantages are:
- The linker can drop the watchdog functions if CONFIG_WATCHDOG is off.
- All watchdog stuff grouped together with only a single function call
left in generic code.
- Watchdog register is only read when it is actually used.
- Less #ifdefery
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200924105256.18162-2-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'drivers/rtc/rtc-sa1100.h')
0 files changed, 0 insertions, 0 deletions