]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5054afe9a29b21bfaeb7f3a59f801d74ea058c3
tree644ba4a89f87dab515bde6123728808ee8e5804a
parentcd93363aea06e9f11b2698b4e9a569ee8dfd5bc3
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