]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/gpio/nrf51_gpio.h
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
[mirror_qemu.git] / include / hw / gpio / nrf51_gpio.h
index 55d7d24a527e63e5ec77d3cf6044d721438d2788..8f9c2f86da3c250d44aff1e8f814f2c98801b3b4 100644 (file)
@@ -29,9 +29,7 @@
 #include "hw/sysbus.h"
 #include "qom/object.h"
 #define TYPE_NRF51_GPIO "nrf51_soc.gpio"
-typedef struct NRF51GPIOState NRF51GPIOState;
-DECLARE_INSTANCE_CHECKER(NRF51GPIOState, NRF51_GPIO,
-                         TYPE_NRF51_GPIO)
+OBJECT_DECLARE_SIMPLE_TYPE(NRF51GPIOState, NRF51_GPIO)
 
 #define NRF51_GPIO_PINS 32