Skip to content

Commit

Permalink
rtc: ds1307: fix regmap config
Browse files Browse the repository at this point in the history
Current max_register setting breaks reading nvram on certain chips and
also reading the standard registers on RX8130 where register map starts
at 0x10.

Signed-off-by: Heiner Kallweit <[email protected]>
Fixes: 11e5890 "rtc: ds1307: convert driver to regmap"
Signed-off-by: Alexandre Belloni <[email protected]>
  • Loading branch information
hkallweit authored and alexandrebelloni committed Aug 21, 2017
1 parent 5771a8c commit 0361984
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/rtc/rtc-ds1307.c
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,6 @@ static void ds1307_clks_register(struct ds1307 *ds1307)
static const struct regmap_config regmap_config = {
.reg_bits = 8,
.val_bits = 8,
.max_register = 0x12,
};

static int ds1307_probe(struct i2c_client *client,
Expand Down

0 comments on commit 0361984

Please sign in to comment.