summaryrefslogtreecommitdiffstats
path: root/include/hw/char/sifive_uart.h
diff options
context:
space:
mode:
authorEduardo Habkost2020-08-31 23:07:33 +0200
committerEduardo Habkost2020-09-18 19:49:48 +0200
commite38d3c5ce5f6e69cf0d87a484d556be0d737d83d (patch)
tree2749653e7c8677c916eb63b3d0aa7e75349017e5 /include/hw/char/sifive_uart.h
parentsifive: Move QOM typedefs and add missing includes (diff)
downloadqemu-e38d3c5ce5f6e69cf0d87a484d556be0d737d83d.tar.gz
qemu-e38d3c5ce5f6e69cf0d87a484d556be0d737d83d.tar.xz
qemu-e38d3c5ce5f6e69cf0d87a484d556be0d737d83d.zip
sifive: Use DECLARE_*CHECKER* macros
$ ./scripts/codeconverter/converter.py -i \ --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20200831210740.126168-12-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw/char/sifive_uart.h')
-rw-r--r--include/hw/char/sifive_uart.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/char/sifive_uart.h b/include/hw/char/sifive_uart.h
index 2bb72ac80b..3e962be659 100644
--- a/include/hw/char/sifive_uart.h
+++ b/include/hw/char/sifive_uart.h
@@ -53,8 +53,8 @@ enum {
#define TYPE_SIFIVE_UART "riscv.sifive.uart"
typedef struct SiFiveUARTState SiFiveUARTState;
-#define SIFIVE_UART(obj) \
- OBJECT_CHECK(SiFiveUARTState, (obj), TYPE_SIFIVE_UART)
+DECLARE_INSTANCE_CHECKER(SiFiveUARTState, SIFIVE_UART,
+ TYPE_SIFIVE_UART)
struct SiFiveUARTState {
/*< private >*/