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:
c03675f
)
rtc-isl12022: properly handle military hour format
author
Roman Fietze
<
[email protected]
>
Wed, 11 Aug 2010 01:02:21 +0000
(18:02 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Aug 2010 15:59:08 +0000
(08:59 -0700)
Mask out PM flag when reading the hour, always set MIL bit when
writing the hour.
Signed-off-by: Roman Fietze <
[email protected]
>
Acked-by: Wan ZongShun <
[email protected]
>
Cc: Alessandro Zummo <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-isl12022.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-isl12022.c
b/drivers/rtc/rtc-isl12022.c
index 4a8c9dd12a7f3b06ce3e8c15e4b63e2d0e494ccc..ddbc797ea6cd68f370301e165294760c24b60c07 100644
(file)
--- a/
drivers/rtc/rtc-isl12022.c
+++ b/
drivers/rtc/rtc-isl12022.c
@@
-208,7
+208,7
@@
static int isl12022_set_datetime(struct i2c_client *client, struct rtc_time *tm)
/* hours, minutes and seconds */
buf[ISL12022_REG_SC] = bin2bcd(tm->tm_sec);
buf[ISL12022_REG_MN] = bin2bcd(tm->tm_min);
- buf[ISL12022_REG_HR] = bin2bcd(tm->tm_hour);
+ buf[ISL12022_REG_HR] = bin2bcd(tm->tm_hour)
| ISL12022_HR_MIL
;
buf[ISL12022_REG_DT] = bin2bcd(tm->tm_mday);