Commit 48e9a9b2 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Alexandre Belloni

rtc: ds1742: don't explicitly specify word_size and stride of nvmem

nvmem_register() assumes these values to be 1 if unset, so they don't
need to be set explicitly.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent ded67666
...@@ -152,8 +152,6 @@ static int ds1742_rtc_probe(struct platform_device *pdev) ...@@ -152,8 +152,6 @@ static int ds1742_rtc_probe(struct platform_device *pdev)
int ret = 0; int ret = 0;
struct nvmem_config nvmem_cfg = { struct nvmem_config nvmem_cfg = {
.name = "ds1742_nvram", .name = "ds1742_nvram",
.word_size = 1,
.stride = 1,
.reg_read = ds1742_nvram_read, .reg_read = ds1742_nvram_read,
.reg_write = ds1742_nvram_write, .reg_write = ds1742_nvram_write,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment