smbus: add a smbus_eeprom_init_one() routine
commite22242141331bc829ecca194f5c06f674da618ef
authorCédric Le Goater <clg@kaod.org>
Fri, 8 Jun 2018 12:15:32 +0000 (8 13:15 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 8 Jun 2018 12:15:32 +0000 (8 13:15 +0100)
treee89ab28f42d5ccfdda995f3dafe35b5788f20634
parent6c4567c730488a667eb7d33f19c9dfcae21187bc
smbus: add a smbus_eeprom_init_one() routine

This is an helper routine to add a single EEPROM on an I2C bus. It can
be directly used by smbus_eeprom_init() which adds a certain number of
EEPROMs on mips and x86 machines.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180530064049.27976-5-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/i2c/smbus_eeprom.c
include/hw/i2c/smbus.h