diff options
author | Emil Bartczak <emilbart@gmail.com> | 2016-12-08 00:27:37 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-12-19 00:59:22 +0100 |
commit | bcf18d88ac16c1a86bac7e8f5f4b1de1f752865f (patch) | |
tree | 682300c7954114742262a5d310737f74a847a8b4 /drivers/rtc/rtc-sunxi.c | |
parent | 0b6a8f5c9bebe51b95ff23939db570e8d298a36f (diff) | |
download | linux-bcf18d88ac16c1a86bac7e8f5f4b1de1f752865f.tar.gz |
rtc: mcp795: use bcd2bin/bin2bcd.
Change rtc-mcp795.c to use the bcd2bin/bin2bcd functions.
This change fixes the wrong conversion of month value
from binary to BCD (missing right shift operation for 10 month).
Signed-off-by: Emil Bartczak <emilbart@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-sunxi.c')
0 files changed, 0 insertions, 0 deletions