rtc: ds1305: put ds1305_nvmem_cfg on the stack
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 12 Feb 2018 22:47:21 +0000 (23:47 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 1 Mar 2018 09:49:16 +0000 (10:49 +0100)
commiteed9d7a335d67f8d61286fb3bbacce9c61c6dc52
treee3ca1735b929c1b373b5a9b4f8b7314e87691735
parent6910614f1e2806f43d0237a3566f83bfbee33440
rtc: ds1305: put ds1305_nvmem_cfg on the stack

This makes to code safer on system using two similar RTCs.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1305.c