]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/char/stm32f2xx_usart.h
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
[mirror_qemu.git] / include / hw / char / stm32f2xx_usart.h
index 1670c076d4855526623555c7ff7c3f0638fc6a42..65bcc85470d49c2fa27a8b83a1a665e3ea52c43e 100644 (file)
@@ -54,9 +54,7 @@
 #define USART_CR1_RE  (1 << 2)
 
 #define TYPE_STM32F2XX_USART "stm32f2xx-usart"
-typedef struct STM32F2XXUsartState STM32F2XXUsartState;
-DECLARE_INSTANCE_CHECKER(STM32F2XXUsartState, STM32F2XX_USART,
-                         TYPE_STM32F2XX_USART)
+OBJECT_DECLARE_SIMPLE_TYPE(STM32F2XXUsartState, STM32F2XX_USART)
 
 struct STM32F2XXUsartState {
     /* <private> */