]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ds1511: put ds1511_nvmem_cfg on the stack
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 12 Feb 2018 22:47:25 +0000 (23:47 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 1 Mar 2018 09:49:18 +0000 (10:49 +0100)
commit4be5eefd8bcd6e8886ae4d7c01b9932f16ad33d7
treeaf6d4d76fd5135d0d828e8ded6f504e125abbf63
parent21878704f68394c1f07e3ff56066e125a1ae74c4
rtc: ds1511: put ds1511_nvmem_cfg on the stack

Move ds1511_nvmem_cfg to the stack of ds1511_rtc_probe. This results in a
very small code size reduction and make it safer on systems with two
similar RTCs:

   text    data     bss     dec     hex filename
   2128     164       4    2296     8f8 drivers/rtc/rtc-ds1511.o.before
   2175     100       4    2279     8e7 drivers/rtc/rtc-ds1511.o.after

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