[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-6.2 10/12] [automated] Use DECLARE_OBJ_CHECKERS when possible
From: |
Eduardo Habkost |
Subject: |
[PATCH for-6.2 10/12] [automated] Use DECLARE_OBJ_CHECKERS when possible |
Date: |
Fri, 6 Aug 2021 17:11:25 -0400 |
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(-)
diff --git a/include/hw/nvram/npcm7xx_otp.h b/include/hw/nvram/npcm7xx_otp.h
index 0a3ebb091d5..377cf462090 100644
--- a/include/hw/nvram/npcm7xx_otp.h
+++ b/include/hw/nvram/npcm7xx_otp.h
@@ -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"
--
2.31.1
- Re: [PATCH for-6.2 05/12] [automated] Move QOM typedefs and add missing includes, (continued)
- [PATCH for-6.2 06/12] [automated] Split QOM "typedef struct T { ... } T" declarations, Eduardo Habkost, 2021/08/06
- [PATCH for-6.2 08/12] npcm7xx_clk: Use DECLARE_INSTANCE_CHECKER, Eduardo Habkost, 2021/08/06
- [PATCH for-6.2 09/12] npcm7xx_otp: Use DECLARE_CLASS_CHECKERS, Eduardo Habkost, 2021/08/06
- [PATCH for-6.2 10/12] [automated] Use DECLARE_OBJ_CHECKERS when possible,
Eduardo Habkost <=
- [PATCH for-6.2 07/12] [automated] Use DECLARE_*CHECKER* macros when possible, Eduardo Habkost, 2021/08/06
- [PATCH for-6.2 11/12] [automated] Use OBJECT_DECLARE_TYPE when possible, Eduardo Habkost, 2021/08/06
- [PATCH for-6.2 12/12] [automated] Use OBJECT_DECLARE_SIMPLE_TYPE when possible, Eduardo Habkost, 2021/08/06
- Re: [PATCH for-6.2 00/12] qom: Get rid of all manual usage of OBJECT_CHECK & friends, Philippe Mathieu-Daudé, 2021/08/07