rtc: ds1307: use rtc_lock/rtc_unlock
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 19 Jan 2021 22:06:42 +0000 (23:06 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 25 Jan 2021 22:46:17 +0000 (23:46 +0100)
commit5923819274c37cf4a3c889a3e08901c51ed9d47d
treea8e5c1ee0b0a5a4a6c577963caba6d31ddc16d7e
parentd57949bb3c37fcf149c30f976e66b7f97597bd91
rtc: ds1307: 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-4-alexandre.belloni@bootlin.com
drivers/rtc/rtc-ds1307.c