From: Philippe Mathieu-Daudé Date: Fri, 11 Jan 2019 14:08:48 +0000 (+0100) Subject: hw/i2c/smbus: Remove SMBusDevice from "qemu/typedefs.h" X-Git-Tag: qemu-xen-4.13.0-rc1~429^2~17 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d183b00e8e18f4fe31db6fc6f0ed5dbe45ef764c;p=qemu-xen.git hw/i2c/smbus: Remove SMBusDevice from "qemu/typedefs.h" Files requiring SMBusDevice already include "hw/i2c/smbus.h". To clean "qemu/typedefs.h", move the forward declaration to "hw/i2c/smbus.h". Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Huth --- diff --git a/include/hw/i2c/smbus.h b/include/hw/i2c/smbus.h index d8b1b9ee81..5c61c05999 100644 --- a/include/hw/i2c/smbus.h +++ b/include/hw/i2c/smbus.h @@ -35,6 +35,8 @@ #define SMBUS_DEVICE_GET_CLASS(obj) \ OBJECT_GET_CLASS(SMBusDeviceClass, (obj), TYPE_SMBUS_DEVICE) +typedef struct SMBusDevice SMBusDevice; + typedef struct SMBusDeviceClass { I2CSlaveClass parent_class; diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 2a8d358e79..38d0e42332 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -106,7 +106,6 @@ typedef struct RAMBlock RAMBlock; typedef struct Range Range; typedef struct SerialState SerialState; typedef struct SHPCDevice SHPCDevice; -typedef struct SMBusDevice SMBusDevice; typedef struct SSIBus SSIBus; typedef struct uWireSlave uWireSlave; typedef struct VirtIODevice VirtIODevice;