summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2015-10-23 09:29:57 +0300
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-11-08 14:12:31 +0100
commit62c8c20af92ea312ecb22cec4e83082e5843076b (patch)
treeb297da641ef1fec5dfc3ef5f60c6e922d3d21b9c /net/bluetooth
parentf4b6722248e4991a65e545d6b19e4497202e8a8a (diff)
downloadblackbird-obmc-linux-62c8c20af92ea312ecb22cec4e83082e5843076b.tar.gz
blackbird-obmc-linux-62c8c20af92ea312ecb22cec4e83082e5843076b.zip
rtc: ds1307: Fix alarm programming for mcp794xx
mcp794xx alarm registers must be written in BCD format. However, the alarm programming logic neglected this by adding one to the value after bin2bcd conversion has been already done, writing bad values to month register in case the alarm being set is in October. In this case, the alarm month value becomes 0x0a instead of the expected 0x10. Fix by moving the +1 addition within the bin2bcd call also. Fixes: 1d1945d261a2 ("drivers/rtc/rtc-ds1307.c: add alarm support for mcp7941x chips") Signed-off-by: Tero Kristo <t-kristo@ti.com> Acked-by: Nishanth Menon <nm@ti.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'net/bluetooth')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud