Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: ac100: 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/20210125221402.1958484-1-alexandre.belloni@bootlin.com

+2 -2
+2 -2
drivers/rtc/rtc-ac100.c
··· 528 528 unsigned int val = 0; 529 529 int ret; 530 530 531 - mutex_lock(&chip->rtc->ops_lock); 531 + rtc_lock(chip->rtc); 532 532 533 533 /* read status */ 534 534 ret = regmap_read(regmap, AC100_ALM_INT_STA, &val); ··· 551 551 } 552 552 553 553 out: 554 - mutex_unlock(&chip->rtc->ops_lock); 554 + rtc_unlock(chip->rtc); 555 555 return IRQ_HANDLED; 556 556 } 557 557