rtc: introduce lock helpers
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 Oct 2019 20:50:34 +0000 (22:50 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 Oct 2019 20:55:46 +0000 (22:55 +0200)
commitae4866884338259318be94fa8f88015cced07000
tree93944e7de70fda991568c8e87791c57e3844a3bb
parent1a064850b5fed41c851adb895a4e959815aa33a2
rtc: introduce lock helpers

Introduce rtc_lock and rtc_unlock to shorten the code when locking and
unlocking ops_lock from drivers.

Link: https://lore.kernel.org/r/20191019205034.6382-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
include/linux/rtc.h