i2c:smbus: Simplify read handling
commit031ac49886684ae6d6b88f37779cad2ffd1e4d9b
authorCorey Minyard <cminyard@mvista.com>
Fri, 30 Nov 2018 19:49:31 +0000 (30 13:49 -0600)
committerCorey Minyard <cminyard@mvista.com>
Thu, 28 Feb 2019 03:06:08 +0000 (27 21:06 -0600)
tree9d33dd036c80d688f252dc25811844467f3792f1
parent9cf27d74a829f651c0da5d80c014a6cef9d4cbd8
i2c:smbus: Simplify read handling

There were two different read functions, and with the removal of
the command passed in there is no functional difference.  So remove
one of them.  With that you don't need one of the states, so that
can be removed, too.

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