Using regmap_i2c allows us to get rid of dealing with the low-level differences between I2C and SMBUS. As a result the code can be simplified a lot. This patchset was successfully tested with a 24C32 on a I2C adapter. Heiner Kallweit (7): eeprom: at24: add basic regmap_i2c support eeprom: at24: change at24_translate_offset return type eeprom: at24: add regmap-based write function eeprom: at24: remove old write functions eeprom: at24: add regmap-based read functions eeprom: at24: remove old read functions eeprom: at24: remove now unneeded smbus-related code drivers/misc/eeprom/Kconfig | 1 + drivers/misc/eeprom/at24.c | 381 +++++++++----------------------------------- 2 files changed, 77 insertions(+), 305 deletions(-) -- 2.14.1