]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/timer/nrf51_timer.h
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / include / hw / timer / nrf51_timer.h
index b4eb29bd761627d512d70a55850569e002b938c9..4261a03b95ccb793b1596c4f211bc1cf5f42045f 100644 (file)
@@ -18,7 +18,8 @@
 #include "qom/object.h"
 #define TYPE_NRF51_TIMER "nrf51_soc.timer"
 typedef struct NRF51TimerState NRF51TimerState;
-#define NRF51_TIMER(obj) OBJECT_CHECK(NRF51TimerState, (obj), TYPE_NRF51_TIMER)
+DECLARE_INSTANCE_CHECKER(NRF51TimerState, NRF51_TIMER,
+                         TYPE_NRF51_TIMER)
 
 #define NRF51_TIMER_REG_COUNT 4