summaryrefslogtreecommitdiff
path: root/hw/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/i2c.h')
-rw-r--r--hw/i2c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i2c.h b/hw/i2c.h
index 479ff4b9f9..238f2560a2 100644
--- a/hw/i2c.h
+++ b/hw/i2c.h
@@ -22,7 +22,7 @@ typedef int (*i2c_recv_cb)(i2c_slave *s);
/* Notify the slave of a bus state change. */
typedef void (*i2c_event_cb)(i2c_slave *s, enum i2c_event event);
-typedef void (*i2c_slave_initfn)(i2c_slave *dev);
+typedef int (*i2c_slave_initfn)(i2c_slave *dev);
typedef struct {
DeviceInfo qdev;