eeprom: at24: extend driver to plug into the NVMEM framework
authorAndrew Lunn <andrew@lunn.ch>
Fri, 26 Feb 2016 19:59:20 +0000 (20:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2016 00:55:48 +0000 (16:55 -0800)
commit57d155506dd5e8f8242d0310d3822c486f70dea7
tree6f9d85a6d74f16c6f4dcc7ff07df85d312e9ed40
parentb6c217ab9be6895384cf0b284ace84ad79e5c53b
eeprom: at24: extend driver to plug into the NVMEM framework

Add a regmap for accessing the EEPROM, and then use that with the
NVMEM framework. Set the NVMEM config structure to enable backward, 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>
Tested-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/Kconfig
drivers/misc/eeprom/at24.c