diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-01-11 15:08:48 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2019-01-22 05:14:32 +0100 |
commit | d183b00e8e18f4fe31db6fc6f0ed5dbe45ef764c (patch) | |
tree | 822cda9e985ead7cf560f47d8e08c9434b5bf732 /include | |
parent | a8b56ec836860eb7144a3b9de356524316ec9f63 (diff) | |
download | qemu-d183b00e8e18f4fe31db6fc6f0ed5dbe45ef764c.zip qemu-d183b00e8e18f4fe31db6fc6f0ed5dbe45ef764c.tar.gz qemu-d183b00e8e18f4fe31db6fc6f0ed5dbe45ef764c.tar.bz2 |
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é <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/i2c/smbus.h | 2 | ||||
-rw-r--r-- | include/qemu/typedefs.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/i2c/smbus.h b/include/hw/i2c/smbus.h index d8b1b9e..5c61c05 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 2a8d358..38d0e42 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; |