aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2018-11-30 13:58:27 -0600
committerCorey Minyard <cminyard@mvista.com>2019-02-27 21:06:08 -0600
commit08a8a4d45050f837d560f1aa23ee0ffff4a2c1d7 (patch)
tree193a6dd02aeeeff0f17d73aa3528cfb42c5d71c0 /hw
parent031ac49886684ae6d6b88f37779cad2ffd1e4d9b (diff)
downloadqemu-08a8a4d45050f837d560f1aa23ee0ffff4a2c1d7.zip
qemu-08a8a4d45050f837d560f1aa23ee0ffff4a2c1d7.tar.gz
qemu-08a8a4d45050f837d560f1aa23ee0ffff4a2c1d7.tar.bz2
i2c:smbus_eeprom: Get rid of the quick command
It's not necessary, it won't be called if it's NULL. Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/i2c/smbus_eeprom.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/hw/i2c/smbus_eeprom.c b/hw/i2c/smbus_eeprom.c
index 760594b..2f90287 100644
--- a/hw/i2c/smbus_eeprom.c
+++ b/hw/i2c/smbus_eeprom.c
@@ -38,13 +38,6 @@ typedef struct SMBusEEPROMDevice {
uint8_t offset;
} SMBusEEPROMDevice;
-static void eeprom_quick_cmd(SMBusDevice *dev, uint8_t read)
-{
-#ifdef DEBUG
- printf("eeprom_quick_cmd: addr=0x%02x read=%d\n", dev->i2c.address, read);
-#endif
-}
-
static uint8_t eeprom_receive_byte(SMBusDevice *dev)
{
SMBusEEPROMDevice *eeprom = (SMBusEEPROMDevice *) dev;
@@ -97,7 +90,6 @@ static void smbus_eeprom_class_initfn(ObjectClass *klass, void *data)
SMBusDeviceClass *sc = SMBUS_DEVICE_CLASS(klass);
dc->realize = smbus_eeprom_realize;
- sc->quick_cmd = eeprom_quick_cmd;
sc->receive_byte = eeprom_receive_byte;
sc->write_data = eeprom_write_data;
dc->props = smbus_eeprom_properties;