]> asedeno.scripts.mit.edu Git - linux.git/commit
rtc: nvmem: remove nvmem from struct rtc_device
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 10 Nov 2018 20:29:03 +0000 (21:29 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 22 Nov 2018 17:10:07 +0000 (18:10 +0100)
commit41c9e132c5cc3e5f28cf44032ff82f7614a42989
treecf3e3e8684653cbdbf78b257f4fd75115ed82bdb
parent461e557b97277b693cd8008c32a9d01c7f8f453b
rtc: nvmem: remove nvmem from struct rtc_device

Using devm_nvmem_register allows to avoid tracking the nvmem pointer in the
rtc_device structure.
This ultimately allows to register multiple nvmem devices from an RTC
driver.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/nvmem.c
include/linux/rtc.h