]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rtc: ab-eoz9: set regmap max_register
authorLiam Beguin <lvb@xiphos.com>
Thu, 8 Apr 2021 02:40:26 +0000 (22:40 -0400)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 16 Apr 2021 22:07:16 +0000 (00:07 +0200)
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
drivers/rtc/rtc-ab-eoz9.c

index b20d8f26dcdb85a7fddc4f2f00e8b4290cf89235..dee17a76a72b3ac3d9fa046b8df2705d86570bbc 100644 (file)
@@ -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)