From: Alexandre Belloni Date: Sat, 24 Feb 2018 00:08:50 +0000 (+0100) Subject: rtc: pcf85363: add .max_register in regmap_config X-Git-Tag: v4.19~1240^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c57849dde003db3e21d33eab906dba2202f9294e;p=platform%2Fkernel%2Flinux-rpi.git rtc: pcf85363: add .max_register in regmap_config This helps debugging as it allows reading registers from debugfs. Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-pcf85363.c b/drivers/rtc/rtc-pcf85363.c index 64573cc..3c5e5e1 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,