]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - Documentation/rtc.txt
rtc: add generic nvmem support
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 6 Jul 2017 09:42:02 +0000 (11:42 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 7 Jul 2017 11:14:14 +0000 (13:14 +0200)
commit697e5a47aa12cdab6f2a8b284cc923cdf704eafc
tree3c2a9a02d436c6499896b7c9800a91c2e8185891
parent735ae2056b3c7296bb188d079c020f606a679c4a
rtc: add generic nvmem support

Many RTCs have an on board non volatile storage. It can be battery backed
RAM or an EEPROM. Use the nvmem subsystem to export it to both userspace
and in-kernel consumers.

This stays compatible with the previous (non documented) ABI that was using
/sys/class/rtc/rtcx/device/nvram to export that memory. But will warn about
the deprecation.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Documentation/rtc.txt
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/class.c
drivers/rtc/nvmem.c [new file with mode: 0644]
drivers/rtc/rtc-core.h
include/linux/rtc.h