Home
last modified time | relevance | path

Searched hist:"5 d78533a0c53af9659227c803df944ba27cd56e0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/rtc/
H A Drtc-pcf2127.cdiff 5d78533a0c53af9659227c803df944ba27cd56e0 Thu Sep 24 05:52:55 CDT 2020 Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 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