]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: mcp795: use bcd2bin/bin2bcd.
authorEmil Bartczak <emilbart@gmail.com>
Wed, 7 Dec 2016 23:27:37 +0000 (00:27 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sun, 18 Dec 2016 23:59:22 +0000 (00:59 +0100)
commit289cbf64373c01c8970a53ccf1a41464b4ab109a
tree682300c7954114742262a5d310737f74a847a8b4
parentec1479e70bfaf0dcecc0ede28ee8c736b023aeb8
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>
drivers/rtc/rtc-mcp795.c