
26 Jun
2016
26 Jun
'16
4:53 a.m.
On 22 June 2016 at 07:14, Mario Six mario.six@gdsys.cc wrote:
From: "mario.six@gdsys.cc" mario.six@gdsys.cc
This patch implements the reading functionality for the generic I2C EEPROM driver, which was just a non-functional stub until now.
Since the page size will be of importance for the writing support, we add suitable members to the private data structure to keep track of it.
Compatibility strings for a range of at24c* chips are added.
Signed-off-by: Mario Six mario.six@gdsys.cc
Changes in v2:
- Simplified and documented the i2c_eeprom struct
- Simplified the read function
- Corrected Kconfig dependency (from DM to MISC)
drivers/misc/Kconfig | 5 +++++ drivers/misc/i2c_eeprom.c | 39 +++++++++++++++++++++++++++++++-------- include/i2c_eeprom.h | 4 ++++ 3 files changed, 40 insertions(+), 8 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org