]> Git Repo - qemu.git/blobdiff - hw/max7310.c
Merge remote-tracking branch 'origin/master' into staging
[qemu.git] / hw / max7310.c
index de2221ba0124dca4fb297b080b893805553af34f..e5cb810a276494218c2d1204cf034f7750f48512 100644 (file)
@@ -7,7 +7,7 @@
  * This file is licensed under GNU GPL.
  */
 
-#include "i2c.h"
+#include "hw/i2c.h"
 
 typedef struct {
     I2CSlave i2c;
@@ -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;
This page took 0.02503 seconds and 4 git commands to generate.