diff mbox series

[v1,2/4] rtc: ab-eoz9: set regmap max_register

Message ID 20210405141334.3884528-3-liambeguin@gmail.com
State Superseded
Headers show
Series add alarm support for the rtc-ab-eoz9 | expand

Commit Message

Liam Beguin April 5, 2021, 2:13 p.m. UTC
From: Liam Beguin <lvb@xiphos.com>

Set regmap's max_register property to allow users to dump registers
using debufgs.

Signed-off-by: Liam Beguin <lvb@xiphos.com>
---
 drivers/rtc/rtc-ab-eoz9.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/rtc/rtc-ab-eoz9.c b/drivers/rtc/rtc-ab-eoz9.c
index 2568984fb8d3..379a231f673c 100644
--- a/drivers/rtc/rtc-ab-eoz9.c
+++ b/drivers/rtc/rtc-ab-eoz9.c
@@ -260,6 +260,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)