mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue