diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-02-26 20:59:22 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-02 01:55:48 +0100 |
commit | 5a99f570dab9f626d3b0b87a4ddf5de8c648aae8 (patch) | |
tree | 3e07d6e790dbb3fc8081ec02ba892f57c854c2d6 /drivers/misc/eeprom/Kconfig | |
parent | eeprom: at25: Remove in kernel API for accessing the EEPROM (diff) | |
download | linux-5a99f570dab9f626d3b0b87a4ddf5de8c648aae8.tar.xz linux-5a99f570dab9f626d3b0b87a4ddf5de8c648aae8.zip |
eeprom: at25: extend driver to plug into the NVMEM framework
Add a regmap for accessing the EEPROM, and then use that with the
NVMEM framework. Enable backwards compatibility in the NVMEM config,
so that the 'eeprom' file in sys is provided by the framework.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/eeprom/Kconfig')
-rw-r--r-- | drivers/misc/eeprom/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/eeprom/Kconfig b/drivers/misc/eeprom/Kconfig index 24935473393b..8c43a222ae55 100644 --- a/drivers/misc/eeprom/Kconfig +++ b/drivers/misc/eeprom/Kconfig @@ -32,6 +32,8 @@ config EEPROM_AT24 config EEPROM_AT25 tristate "SPI EEPROMs from most vendors" depends on SPI && SYSFS + select REGMAP + select NVMEM help Enable this driver to get read/write support to most SPI EEPROMs, after you configure the board init code to know about each eeprom |