Skip to content

Commit c2d12e8

Browse files
rtc: pcf85063: fix pcf85063_clkout_control
pcf85063_clkout_control reads the wrong register but then update the correct one. Reported-by: Janne Terho <janne.terho@ouman.fi> Fixes: 8c229ab ("rtc: pcf85063: Add pcf85063 clkout control to common clock framework") Link: https://lore.kernel.org/r/20221211223553.59955-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 103c14d commit c2d12e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/rtc/rtc-pcf85063.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ static int pcf85063_clkout_control(struct clk_hw *hw, bool enable)
424424
unsigned int buf;
425425
int ret;
426426

427-
ret = regmap_read(pcf85063->regmap, PCF85063_REG_OFFSET, &buf);
427+
ret = regmap_read(pcf85063->regmap, PCF85063_REG_CTRL2, &buf);
428428
if (ret < 0)
429429
return ret;
430430
buf &= PCF85063_REG_CLKO_F_MASK;

0 commit comments

Comments
 (0)