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@xxxxxxx>
---
drivers/misc/eeprom/Kconfig | 2 +
drivers/misc/eeprom/at24.c | 121 +++++++++++++++++++++++++++++---------------
2 files changed, 82 insertions(+), 41 deletions(-)