i2c:smbus_eeprom: Add a reset function to smbus_eeprom
commit1042b22dcbc23be124b2ebfb15a363cf7a36914c
authorCorey Minyard <cminyard@mvista.com>
Thu, 15 Nov 2018 14:31:11 +0000 (15 08:31 -0600)
committerCorey Minyard <cminyard@mvista.com>
Thu, 28 Feb 2019 03:06:08 +0000 (27 21:06 -0600)
tree0b39a548bcc02a0411115afc5d45588aceca1b38
parentfd9df33f0829fd93d02f48fe650be057f8d52dfd
i2c:smbus_eeprom: Add a reset function to smbus_eeprom

Reset the contents to init data and reset the offset on a machine
reset.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/i2c/smbus_eeprom.c