diff options
author | BALATON Zoltan <balaton@eik.bme.hu> | 2025-03-01 15:35:33 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-05 02:13:30 +0100 |
commit | f94a158c708666d97fe68bf39c8f8a32c0a5176d (patch) | |
tree | 01e1288eea67997939f0d5bd9e5b201b161f9c17 | |
parent | 5ae3ca2d170ea022e8b1bf63598569aad511368f (diff) | |
download | qemu-f94a158c708666d97fe68bf39c8f8a32c0a5176d.zip qemu-f94a158c708666d97fe68bf39c8f8a32c0a5176d.tar.gz qemu-f94a158c708666d97fe68bf39c8f8a32c0a5176d.tar.bz2 |
hw/nvram/eeprom_at24c: Use OBJECT_DECLARE_SIMPLE_TYPE
No need to open code it so use the simple object type declaration.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <08d9900af04789ede485942c8072eaa58bf52f80.1740839457.git.balaton@eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
-rw-r--r-- | hw/nvram/eeprom_at24c.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/nvram/eeprom_at24c.c b/hw/nvram/eeprom_at24c.c index a40cc5d..2ae0393 100644 --- a/hw/nvram/eeprom_at24c.c +++ b/hw/nvram/eeprom_at24c.c @@ -30,9 +30,7 @@ ## __VA_ARGS__) #define TYPE_AT24C_EE "at24c-eeprom" -typedef struct EEPROMState EEPROMState; -DECLARE_INSTANCE_CHECKER(EEPROMState, AT24C_EE, - TYPE_AT24C_EE) +OBJECT_DECLARE_SIMPLE_TYPE(EEPROMState, AT24C_EE) struct EEPROMState { I2CSlave parent_obj; |