mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
ded676666f
commit
48e9a9b203
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user