Message ID | 08d9900af04789ede485942c8072eaa58bf52f80.1740839457.git.balaton@eik.bme.hu (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Misc eeprom_at24c clean ups | expand |
On 1/3/25 15:35, BALATON Zoltan wrote: > No need to open code it so use the simple object type declaration. > > Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> > --- > hw/nvram/eeprom_at24c.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/hw/nvram/eeprom_at24c.c b/hw/nvram/eeprom_at24c.c index a40cc5dd15..2ae03935d4 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;
No need to open code it so use the simple object type declaration. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> --- hw/nvram/eeprom_at24c.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)