hw/nvram/eeprom_at24c: Use OBJECT_DECLARE_SIMPLE_TYPE
authorBALATON Zoltan <balaton@eik.bme.hu>
Sat, 1 Mar 2025 14:35:33 +0000 (15:35 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 5 Mar 2025 01:13:30 +0000 (02:13 +0100)
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>
hw/nvram/eeprom_at24c.c

index a40cc5dd15ab5d23e54637929f7998a44fe2361d..2ae03935d4798d10c47f4fdce8ac42f588b3fd68 100644 (file)
@@ -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;