summary refs log tree commit diff stats
path: root/hw/gpio/pcf8574.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/gpio/pcf8574.c')
-rw-r--r--hw/gpio/pcf8574.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/gpio/pcf8574.c b/hw/gpio/pcf8574.c
index 208efe69ea..274b44bb61 100644
--- a/hw/gpio/pcf8574.c
+++ b/hw/gpio/pcf8574.c
@@ -138,7 +138,7 @@ static void pcf8574_realize(DeviceState *dev, Error **errp)
     qdev_init_gpio_out_named(dev, &s->intrq, "nINT", 1);
 }
 
-static void pcf8574_class_init(ObjectClass *klass, void *data)
+static void pcf8574_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass   *dc = DEVICE_CLASS(klass);
     I2CSlaveClass *k  = I2C_SLAVE_CLASS(klass);