aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-ab-eoz9.c
diff options
context:
space:
mode:
authorLiam Beguin <lvb@xiphos.com>2021-04-07 22:40:26 -0400
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2021-04-17 00:07:16 +0200
commitf1d304766c7f5388239d273fc0b72efa62acd9ca (patch)
tree7c016f30872d73550891d7614c6a04380716bce3 /drivers/rtc/rtc-ab-eoz9.c
parent03531606ef4cda25b629f500d1ffb6173b805c05 (diff)
downloadlinux-f1d304766c7f5388239d273fc0b72efa62acd9ca.tar.gz
rtc: ab-eoz9: set regmap max_register
Set regmap's max_register property to allow users to dump registers using debufgs. Signed-off-by: Liam Beguin <lvb@xiphos.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20210408024028.3526564-2-liambeguin@gmail.com
Diffstat (limited to 'drivers/rtc/rtc-ab-eoz9.c')
-rw-r--r--drivers/rtc/rtc-ab-eoz9.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-ab-eoz9.c b/drivers/rtc/rtc-ab-eoz9.c
index b20d8f26dcdb8..dee17a76a72b3 100644
--- a/drivers/rtc/rtc-ab-eoz9.c
+++ b/drivers/rtc/rtc-ab-eoz9.c
@@ -264,6 +264,7 @@ static const struct rtc_class_ops rtc_ops = {
static const struct regmap_config abeoz9_rtc_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
+ .max_register = 0x3f,
};
#if IS_REACHABLE(CONFIG_HWMON)