Commit df100c01 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Alexandre Belloni

rtc: make rtc_does_wakealarm() return boolean

Users of rtc_does_wakealarm() return value treat it as boolean so let's
change the signature accordingly.
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent f2284f9c
...@@ -230,10 +230,11 @@ static DEVICE_ATTR(wakealarm, S_IRUGO | S_IWUSR, ...@@ -230,10 +230,11 @@ static DEVICE_ATTR(wakealarm, S_IRUGO | S_IWUSR,
* suspend-to-disk. So: no attribute unless that side effect is possible. * suspend-to-disk. So: no attribute unless that side effect is possible.
* (Userspace may disable that mechanism later.) * (Userspace may disable that mechanism later.)
*/ */
static inline int rtc_does_wakealarm(struct rtc_device *rtc) static bool rtc_does_wakealarm(struct rtc_device *rtc)
{ {
if (!device_can_wakeup(rtc->dev.parent)) if (!device_can_wakeup(rtc->dev.parent))
return 0; return false;
return rtc->ops->set_alarm != NULL; return rtc->ops->set_alarm != NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment