diff options
| author | Eduardo Habkost <ehabkost@redhat.com> | 2020-08-31 17:07:33 -0400 |
|---|---|---|
| committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-09-18 13:49:48 -0400 |
| commit | e38d3c5ce5f6e69cf0d87a484d556be0d737d83d (patch) | |
| tree | 2749653e7c8677c916eb63b3d0aa7e75349017e5 /include/hw/misc/sifive_u_otp.h | |
| parent | ac900edeed585a8e50766c4bd6f370d8bcac3b0e (diff) | |
| download | focaccia-qemu-e38d3c5ce5f6e69cf0d87a484d556be0d737d83d.tar.gz focaccia-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/misc/sifive_u_otp.h')
| -rw-r--r-- | include/hw/misc/sifive_u_otp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/misc/sifive_u_otp.h b/include/hw/misc/sifive_u_otp.h index 4572534f50..82c9176c8f 100644 --- a/include/hw/misc/sifive_u_otp.h +++ b/include/hw/misc/sifive_u_otp.h @@ -51,8 +51,8 @@ #define TYPE_SIFIVE_U_OTP "riscv.sifive.u.otp" typedef struct SiFiveUOTPState SiFiveUOTPState; -#define SIFIVE_U_OTP(obj) \ - OBJECT_CHECK(SiFiveUOTPState, (obj), TYPE_SIFIVE_U_OTP) +DECLARE_INSTANCE_CHECKER(SiFiveUOTPState, SIFIVE_U_OTP, + TYPE_SIFIVE_U_OTP) struct SiFiveUOTPState { /*< private >*/ |