diff options
author | Alvin Šipraga <alvin@airtame.com> | 2018-07-15 23:31:53 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-07-28 14:49:25 +0200 |
commit | ec9cf1b7a6af2c0cffaa887351e7c7acced5290e (patch) | |
tree | 761e0285b6c2ddb2a36058a76586da4c4325dafa /drivers/char | |
parent | 8856541557f3626beec43aa0821b2e0f031f0153 (diff) | |
download | talos-obmc-linux-ec9cf1b7a6af2c0cffaa887351e7c7acced5290e.tar.gz talos-obmc-linux-ec9cf1b7a6af2c0cffaa887351e7c7acced5290e.zip |
rtc: pcf85063: preserve control register value between stop and start
Fix a bug that caused the Control_1 register to get zeroed whenever the
RTC time is set. The problem occurred between stopping and starting the
RTC clock, wherein the return value of a successful I2C write function
would get written to the register.
Also update variables of the start and stop functions to be more
consistent with the rest of the driver.
Signed-off-by: Alvin Šipraga <alvin@airtame.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions