Skip to content

Commit

Permalink
rtc: pcf85063: fix clearing bits in pcf85063_start_clock
Browse files Browse the repository at this point in the history
Bit clear operation was missing ~

Signed-off-by: Michael McCormick <michael.mccormick@enatel.net>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
  • Loading branch information
Michael McCormick authored and Alexandre Belloni committed Mar 17, 2018
1 parent 65d211b commit 051abf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-pcf85063.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static int pcf85063_start_clock(struct i2c_client *client, u8 ctrl1)
s32 ret;

/* start the clock */
ctrl1 &= PCF85063_REG_CTRL1_STOP;
ctrl1 &= ~PCF85063_REG_CTRL1_STOP;

ret = i2c_smbus_write_byte_data(client, PCF85063_REG_CTRL1, ctrl1);
if (ret < 0) {
Expand Down

0 comments on commit 051abf5

Please sign in to comment.