提交 c57849dd 编写于 作者: A Alexandre Belloni

rtc: pcf85363: add .max_register in regmap_config

This helps debugging as it allows reading registers from debugfs.
Signed-off-by: NAlexandre Belloni <alexandre.belloni@bootlin.com>
上级 e2c8e1a9
...@@ -157,6 +157,7 @@ static int pcf85363_nvram_write(void *priv, unsigned int offset, void *val, ...@@ -157,6 +157,7 @@ static int pcf85363_nvram_write(void *priv, unsigned int offset, void *val,
static const struct regmap_config regmap_config = { static const struct regmap_config regmap_config = {
.reg_bits = 8, .reg_bits = 8,
.val_bits = 8, .val_bits = 8,
.max_register = 0x7f,
}; };
static int pcf85363_probe(struct i2c_client *client, static int pcf85363_probe(struct i2c_client *client,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册