smbus-eeprom: remove PROP_PTR
commitb9751d205febdfefdb9bb9828fef07ae9a966f1b
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 18 Oct 2019 10:19:36 +0000 (18 12:19 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 7 Jan 2020 13:24:29 +0000 (7 17:24 +0400)
tree857c72a4fe93311ad38bbdce80f6b2af9343e529
parentf4f643882d9dc4676411d1f5fcf9393aa745570b
smbus-eeprom: remove PROP_PTR

Instead, set the initial data field directly.

(the initial data is an array of 256 bytes. As I don't know if it may
change over time, I keep the pointer to original buffer as is, but it
might be worth to consider to copy it instead)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Corey Minyard <cminyard@mvista.com>
hw/i2c/smbus_eeprom.c