@@ -58,11 +58,9 @@ struct NPCM7xxOTPState {
typedef struct NPCM7xxOTPState NPCM7xxOTPState;
#define TYPE_NPCM7XX_OTP "npcm7xx-otp"
-DECLARE_INSTANCE_CHECKER(NPCM7xxOTPState, NPCM7XX_OTP,
- TYPE_NPCM7XX_OTP)
typedef struct NPCM7xxOTPClass NPCM7xxOTPClass;
-DECLARE_CLASS_CHECKERS(NPCM7xxOTPClass, NPCM7XX_OTP,
- TYPE_NPCM7XX_OTP)
+DECLARE_OBJ_CHECKERS(NPCM7xxOTPState, NPCM7xxOTPClass,
+ NPCM7XX_OTP, TYPE_NPCM7XX_OTP)
#define TYPE_NPCM7XX_KEY_STORAGE "npcm7xx-key-storage"
#define TYPE_NPCM7XX_FUSE_ARRAY "npcm7xx-fuse-array"
This automatically convert DECLARE_INSTANCE_CHECKER/DECLARE_CLASS_CHECKER pairs to DECLARE_OBJ_CHECKERS. Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=AddDeclareObjCheckers $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> --- Cc: Havard Skinnemoen <hskinnemoen@google.com> Cc: Tyrone Ting <kfting@nuvoton.com> Cc: qemu-arm@nongnu.org Cc: qemu-devel@nongnu.org --- include/hw/nvram/npcm7xx_otp.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)