OSDN Git Service

rtc: rv3029: fix set_time function
authorMylène Josserand <mylene.josserand@free-electrons.com>
Tue, 3 May 2016 09:54:37 +0000 (11:54 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 21 May 2016 15:06:58 +0000 (17:06 +0200)
commit38201ca3c58d27ac95ee08995558c7176b4feb13
tree644ba4a89f87dab515bde6123728808ee8e5804a
parentdc492e866a997b3df2a551fa772d6887a19e53b8
rtc: rv3029: fix set_time function

The bin2bcd function in set_time is uncorrect on weekdays as the
bit mask should be done at the end of arithmetic operations.

Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-rv3029c2.c