diff options
| author | Eduardo Habkost | 2020-08-31 23:07:33 +0200 |
|---|---|---|
| committer | Eduardo Habkost | 2020-09-18 19:49:48 +0200 |
| commit | e38d3c5ce5f6e69cf0d87a484d556be0d737d83d (patch) | |
| tree | 2749653e7c8677c916eb63b3d0aa7e75349017e5 /include/hw/gpio | |
| parent | sifive: Move QOM typedefs and add missing includes (diff) | |
| download | qemu-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/gpio')
| -rw-r--r-- | include/hw/gpio/sifive_gpio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/gpio/sifive_gpio.h b/include/hw/gpio/sifive_gpio.h index af991fa44e..fc53785c9d 100644 --- a/include/hw/gpio/sifive_gpio.h +++ b/include/hw/gpio/sifive_gpio.h @@ -19,7 +19,8 @@ #define TYPE_SIFIVE_GPIO "sifive_soc.gpio" typedef struct SIFIVEGPIOState SIFIVEGPIOState; -#define SIFIVE_GPIO(obj) OBJECT_CHECK(SIFIVEGPIOState, (obj), TYPE_SIFIVE_GPIO) +DECLARE_INSTANCE_CHECKER(SIFIVEGPIOState, SIFIVE_GPIO, + TYPE_SIFIVE_GPIO) #define SIFIVE_GPIO_PINS 32 |
