diff options
author | Phil Reid <preid@electromag.com.au> | 2017-02-17 09:44:57 +0800 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-02-21 21:34:00 +0100 |
commit | 082edf0ab1e83fe42d98ea7b6c1a64a896efce70 (patch) | |
tree | a05067d41a8bccd054dd8062ed1265215cbc3700 /drivers/rtc/rtc-ds3232.c | |
parent | ca4b0a6de8a8ed9834942a5ba0c6a7cd80877320 (diff) | |
download | linux-082edf0ab1e83fe42d98ea7b6c1a64a896efce70.tar.bz2 |
rtc: ds3232: Add regmap max_register definition.
Add the max_register to the regmap_config definition. This allows
dumping of the device's registers via the regmap debugfs interface.
Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-ds3232.c')
-rw-r--r-- | drivers/rtc/rtc-ds3232.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-ds3232.c b/drivers/rtc/rtc-ds3232.c index 67066f1da860..60de3a0cc35b 100644 --- a/drivers/rtc/rtc-ds3232.c +++ b/drivers/rtc/rtc-ds3232.c @@ -420,6 +420,7 @@ static int ds3232_i2c_probe(struct i2c_client *client, static const struct regmap_config config = { .reg_bits = 8, .val_bits = 8, + .max_register = 0x13, }; regmap = devm_regmap_init_i2c(client, &config); @@ -479,6 +480,7 @@ static int ds3234_probe(struct spi_device *spi) static const struct regmap_config config = { .reg_bits = 8, .val_bits = 8, + .max_register = 0x13, .write_flag_mask = 0x80, }; struct regmap *regmap; |