summaryrefslogtreecommitdiff
path: root/hw/smbus.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/smbus.h')
-rw-r--r--hw/smbus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/smbus.h b/hw/smbus.h
index d8c805964d..d582e6dc42 100644
--- a/hw/smbus.h
+++ b/hw/smbus.h
@@ -37,7 +37,7 @@ struct SMBusDevice {
typedef struct {
I2CSlaveInfo i2c;
- void (*init)(SMBusDevice *dev);
+ int (*init)(SMBusDevice *dev);
void (*quick_cmd)(SMBusDevice *dev, uint8_t read);
void (*send_byte)(SMBusDevice *dev, uint8_t val);
uint8_t (*receive_byte)(SMBusDevice *dev);