rtc: ds3232: use rtc_lock/rtc_unlock
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 19 Jan 2021 22:06:44 +0000 (23:06 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 25 Jan 2021 22:46:17 +0000 (23:46 +0100)
commit3aa7eaf2383f43727caa20b58c36e7ab36918dc5
treed28c90980e96cb7294578d09eaf1957e5f3f90de
parent811c79166028f732a571a32af2ee68195f6b0a04
rtc: ds3232: use rtc_lock/rtc_unlock

Avoid accessing directly rtc->ops_lock and use the RTC core helpers.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210119220653.677750-6-alexandre.belloni@bootlin.com
drivers/rtc/rtc-ds3232.c