]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: sysfs: check features instead of ops
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 29 Apr 2021 21:44:03 +0000 (23:44 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 29 Apr 2021 21:51:18 +0000 (23:51 +0200)
commita77f8b4ee5b7ed3d8f582aaaac3310aa6eb05b71
treeebc6f85836ddd38e37336360643e43dcc83f485b
parent4ccfd819dd19c5775901d673f9b332f077834007
rtc: sysfs: check features instead of ops

Test RTC_FEATURE_ALARM instead of relying on .set_alarm to know whether
alarms are available.

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