提交 082edf0a 编写于 作者: P Phil Reid 提交者: Alexandre Belloni

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: NPhil Reid <preid@electromag.com.au>
Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
上级 ca4b0a6d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册