Skip to content

Commit

Permalink
rtc: pcf85363: add .max_register in regmap_config
Browse files Browse the repository at this point in the history
This helps debugging as it allows reading registers from debugfs.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
  • Loading branch information
Alexandre Belloni committed Mar 17, 2018
1 parent e2c8e1a commit c57849d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/rtc/rtc-pcf85363.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ static int pcf85363_nvram_write(void *priv, unsigned int offset, void *val,
static const struct regmap_config regmap_config = {
.reg_bits = 8,
.val_bits = 8,
.max_register = 0x7f,
};

static int pcf85363_probe(struct i2c_client *client,
Expand Down

0 comments on commit c57849d

Please sign in to comment.