OSDN Git Service

rtc: ds1307: correct register offset for rx8130
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 25 Jan 2019 14:35:56 +0000 (15:35 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 7 Feb 2019 19:55:44 +0000 (20:55 +0100)
commit3ffd4a2fcf52c1170654c68459fff40773a729ea
treeb27566985c7bd3ba88bff2ae112913fe7b536449
parentd0e3f61b08e222d3c6895085487cbb8b54448abd
rtc: ds1307: correct register offset for rx8130

While rx8130 has a register offset of 0x10 in its chip_desc, this isn't
used when regmap accesses are done. So add 0x10 to access the right
locations.

Fixes: ee0981be7704 ("rtc: ds1307: Add support for Epson RX8130CE")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1307.c