rtc: ds1742: don't explicitly specify word_size and stride of nvmem
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 20 May 2018 15:21:45 +0000 (17:21 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 21 May 2018 20:34:36 +0000 (22:34 +0200)
nvmem_register() assumes these values to be 1 if unset, so they don't
need to be set explicitly.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1742.c

index 5b7f02e89941f1d598d9a055eff824c97e710c50..5a4c2c5e86fe0dd8731a5cb3115d6d83768ca24b 100644 (file)
@@ -152,8 +152,6 @@ static int ds1742_rtc_probe(struct platform_device *pdev)
        int ret = 0;
        struct nvmem_config nvmem_cfg = {
                .name = "ds1742_nvram",
-               .word_size = 1,
-               .stride = 1,
                .reg_read = ds1742_nvram_read,
                .reg_write = ds1742_nvram_write,
        };