diff mbox series

[03/18] chardev: Use DECLARE_INSTANCE_CHECKER macro for PARALLEL_CHARDEV

Message ID 20200910194903.4104696-4-ehabkost@redhat.com
State New
Headers show
Series chardev: QOM cleanups | expand

Commit Message

Eduardo Habkost Sept. 10, 2020, 7:48 p.m. UTC
Use DECLARE_INSTANCE_CHECKER instead of manually defining the
instance type checking macro.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 chardev/char-parallel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/chardev/char-parallel.c b/chardev/char-parallel.c
index e32aa2d226..3d670bcb1d 100644
--- a/chardev/char-parallel.c
+++ b/chardev/char-parallel.c
@@ -48,8 +48,8 @@ 
 #include "chardev/char-parallel.h"
 
 typedef struct ParallelChardev ParallelChardev;
-#define PARALLEL_CHARDEV(obj) \
-    OBJECT_CHECK(ParallelChardev, (obj), TYPE_CHARDEV_PARALLEL)
+DECLARE_INSTANCE_CHECKER(ParallelChardev, PARALLEL_CHARDEV,
+                         TYPE_CHARDEV_PARALLEL)
 
 #if defined(__linux__)