eeprom: at25: extend driver to plug into the NVMEM framework
authorAndrew Lunn <andrew@lunn.ch>
Fri, 26 Feb 2016 19:59:22 +0000 (20:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2016 00:55:48 +0000 (16:55 -0800)
commit5a99f570dab9f626d3b0b87a4ddf5de8c648aae8
tree3e07d6e790dbb3fc8081ec02ba892f57c854c2d6
parent3ccea0e1fdf896645f8cccddcfcf60cb289fdf76
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>
drivers/misc/eeprom/Kconfig
drivers/misc/eeprom/at25.c