Skip to contentSkip to conversation

rtc: tx4939: fixup nvmem name and register size

PATCH New Alexandre Belloni 1 participant 1 message Sep 19, 2018 Real time clock (RTC)

lore
Share & tools
lore

Alexandre Belloni

author maintainer
#0 lore raw

PATCH 1/1 rtc: tx4939: fixup nvmem name and register size

The default word_size and stride of 1 are correct for the tx4939. Also fix the nvmem folder name.

---
 drivers/rtc/rtc-tx4939.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/rtc/rtc-tx4939.c +1 -3
index 08dbefc79520..61c110b2045f 100644
@@ -253,9 +253,7 @@ static int __init tx4939_rtc_probe(struct platform_device *pdev)
 	struct resource *res;
 	int irq, ret;
 	struct nvmem_config nvmem_cfg = {
-		.name = "rv8803_nvram",
-		.word_size = 4,
-		.stride = 4,
+		.name = "tx4939_nvram",
 		.size = TX4939_RTC_REG_RAMSIZE,
 		.reg_read = tx4939_nvram_read,
 		.reg_write = tx4939_nvram_write,
Signature · 1 line
2.19.0