summaryrefslogtreecommitdiffstats
path: root/hw/max7310.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/max7310.c')
-rw-r--r--hw/max7310.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/max7310.c b/hw/max7310.c
index de2221b..c2df0b4 100644
--- a/hw/max7310.c
+++ b/hw/max7310.c
@@ -25,7 +25,7 @@ typedef struct {
static void max7310_reset(DeviceState *dev)
{
- MAX7310State *s = FROM_I2C_SLAVE(MAX7310State, I2C_SLAVE_FROM_QDEV(dev));
+ MAX7310State *s = FROM_I2C_SLAVE(MAX7310State, I2C_SLAVE(dev));
s->level &= s->direction;
s->direction = 0xff;
s->polarity = 0xf0;
OpenPOWER on IntegriCloud