i2c:smbus: Simplify write operation
commit9cf27d74a829f651c0da5d80c014a6cef9d4cbd8
authorCorey Minyard <cminyard@mvista.com>
Fri, 30 Nov 2018 19:38:21 +0000 (30 13:38 -0600)
committerCorey Minyard <cminyard@mvista.com>
Thu, 28 Feb 2019 03:06:08 +0000 (27 21:06 -0600)
tree74bb0f0aee54e6e81fccfeb58417bcecaab85366
parent905cec6d11088e585fcedb3fd606510959ee50ff
i2c:smbus: Simplify write operation

There were two different write functions and the SMBus code kept
track of the command.

Keeping track of the command wasn't useful, in fact it wasn't quite
correct for the eeprom_smbus code.  And there is no need for two write
functions.  Just have one write function and the first byte in the
buffer is the command.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
hw/i2c/smbus_eeprom.c
hw/i2c/smbus_slave.c
include/hw/i2c/smbus_slave.h