Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 8c229ab6048b ("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 -1
+1 -1
drivers/rtc/rtc-pcf85063.c
··· 424 424 unsigned int buf; 425 425 int ret; 426 426 427 - ret = regmap_read(pcf85063->regmap, PCF85063_REG_OFFSET, &buf); 427 + ret = regmap_read(pcf85063->regmap, PCF85063_REG_CTRL2, &buf); 428 428 if (ret < 0) 429 429 return ret; 430 430 buf &= PCF85063_REG_CLKO_F_MASK;