commit | bcf18d88ac16c1a86bac7e8f5f4b1de1f752865f | [log] [tgz] |
---|---|---|
author | Emil Bartczak <emilbart@gmail.com> | Thu Dec 08 00:27:37 2016 +0100 |
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Mon Dec 19 00:59:22 2016 +0100 |
tree | 682300c7954114742262a5d310737f74a847a8b4 | |
parent | 0b6a8f5c9bebe51b95ff23939db570e8d298a36f [diff] |
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>