projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3350f9
)
rtc: pcf8563: don't alway enable the alarm
author
Alexandre Belloni
<
[email protected]
>
Wed, 8 Nov 2017 04:27:45 +0000
(
05:27
+0100)
committer
Alexandre Belloni
<
[email protected]
>
Thu, 9 Nov 2017 00:16:36 +0000
(
01:16
+0100)
Allow setting the alarm and later enable it instead of enabling it
unconditionally.
Signed-off-by: Alexandre Belloni <
[email protected]
>
drivers/rtc/rtc-pcf8563.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-pcf8563.c
b/drivers/rtc/rtc-pcf8563.c
index 8c836c51a508f3d266ac1a3a7b23141863169a8e..3efc86c25d27a5754031f95136522766e67cd563 100644
(file)
--- a/
drivers/rtc/rtc-pcf8563.c
+++ b/
drivers/rtc/rtc-pcf8563.c
@@
-387,7
+387,7
@@
static int pcf8563_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *tm)
if (err)
return err;
- return pcf8563_set_alarm_mode(client,
1
);
+ return pcf8563_set_alarm_mode(client,
!!tm->enabled
);
}
static int pcf8563_irq_enable(struct device *dev, unsigned int enabled)