aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-pcf85363.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-02-24 01:08:50 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-03-17 14:20:48 +0100
commitc57849dde003db3e21d33eab906dba2202f9294e (patch)
treed8df4dbff37fccf3b2d66527bf9149cd7d074204 /drivers/rtc/rtc-pcf85363.c
parente2c8e1a9f7e52203c9a2712a2e35326d212ad5d7 (diff)
downloadlinux-c57849dde003db3e21d33eab906dba2202f9294e.tar.gz
rtc: pcf85363: add .max_register in regmap_config
This helps debugging as it allows reading registers from debugfs. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-pcf85363.c')
-rw-r--r--drivers/rtc/rtc-pcf85363.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-pcf85363.c b/drivers/rtc/rtc-pcf85363.c
index 64573cccf7fe0..3c5e5e1a5eadb 100644
--- a/drivers/rtc/rtc-pcf85363.c
+++ b/drivers/rtc/rtc-pcf85363.c
@@ -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,