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>
This commit is contained in:
parent
5ae3ca2d17
commit
f94a158c70
@ -30,9 +30,7 @@
|
|||||||
## __VA_ARGS__)
|
## __VA_ARGS__)
|
||||||
|
|
||||||
#define TYPE_AT24C_EE "at24c-eeprom"
|
#define TYPE_AT24C_EE "at24c-eeprom"
|
||||||
typedef struct EEPROMState EEPROMState;
|
OBJECT_DECLARE_SIMPLE_TYPE(EEPROMState, AT24C_EE)
|
||||||
DECLARE_INSTANCE_CHECKER(EEPROMState, AT24C_EE,
|
|
||||||
TYPE_AT24C_EE)
|
|
||||||
|
|
||||||
struct EEPROMState {
|
struct EEPROMState {
|
||||||
I2CSlave parent_obj;
|
I2CSlave parent_obj;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user