memory_accessor: new interface for reading/writing persistent memory
commit06c421ee0d5af95c8c6749ca0ba620cd5010707f
authorKevin Hilman <khilman@deeprootsystems.com>
Thu, 2 Apr 2009 23:56:56 +0000 (2 16:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Apr 2009 02:04:50 +0000 (2 19:04 -0700)
treee4b2cd412d7dd3081f8aaee88d77b1ab72b33b15
parentbf6aede712334d7338d5c47a5ee5ba3883c82a61
memory_accessor: new interface for reading/writing persistent memory

Add an interface by which other kernel code can read/write persistent
memory such as I2C or SPI EEPROMs, or devices which provide NVRAM.  Use
cases include storage of board-specific configuration data like Ethernet
addresses and sensor calibrations.

Original idea, review and improvement suggestions by David Brownell.

Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memory.h