qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 16/18] chardev: Rename WCTABLET_CHARDEV to CHARDEV_WCTABLET


From: Eduardo Habkost
Subject: [PATCH 16/18] chardev: Rename WCTABLET_CHARDEV to CHARDEV_WCTABLET
Date: Thu, 10 Sep 2020 15:49:01 -0400

Rename instance and class type checkers to match the
TYPE_CHARDEV_* constant names and the QOM type name strings
("chardev-*").

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 chardev/wctablet.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/chardev/wctablet.c b/chardev/wctablet.c
index 95e005f5a5..c5b0be0451 100644
--- a/chardev/wctablet.c
+++ b/chardev/wctablet.c
@@ -86,7 +86,7 @@ struct TabletChardev {
 typedef struct TabletChardev TabletChardev;
 
 #define TYPE_CHARDEV_WCTABLET "chardev-wctablet"
-DECLARE_INSTANCE_CHECKER(TabletChardev, WCTABLET_CHARDEV,
+DECLARE_INSTANCE_CHECKER(TabletChardev, CHARDEV_WCTABLET,
                          TYPE_CHARDEV_WCTABLET)
 
 
@@ -187,7 +187,7 @@ static QemuInputHandler wctablet_handler = {
 
 static void wctablet_chr_accept_input(Chardev *chr)
 {
-    TabletChardev *tablet = WCTABLET_CHARDEV(chr);
+    TabletChardev *tablet = CHARDEV_WCTABLET(chr);
     int len, canWrite;
 
     canWrite = qemu_chr_be_can_write(chr);
@@ -208,7 +208,7 @@ static void wctablet_chr_accept_input(Chardev *chr)
 static int wctablet_chr_write(struct Chardev *chr,
                               const uint8_t *buf, int len)
 {
-    TabletChardev *tablet = WCTABLET_CHARDEV(chr);
+    TabletChardev *tablet = CHARDEV_WCTABLET(chr);
     unsigned int i, clen;
     char *pos;
 
@@ -297,7 +297,7 @@ static int wctablet_chr_write(struct Chardev *chr,
 
 static int wctablet_chr_ioctl(Chardev *chr, int cmd, void *arg)
 {
-    TabletChardev *tablet = WCTABLET_CHARDEV(chr);
+    TabletChardev *tablet = CHARDEV_WCTABLET(chr);
     QEMUSerialSetParams *ssp;
 
     switch (cmd) {
@@ -317,7 +317,7 @@ static int wctablet_chr_ioctl(Chardev *chr, int cmd, void 
*arg)
 
 static void wctablet_chr_finalize(Object *obj)
 {
-    TabletChardev *tablet = WCTABLET_CHARDEV(obj);
+    TabletChardev *tablet = CHARDEV_WCTABLET(obj);
 
     qemu_input_handler_unregister(tablet->hs);
     g_free(tablet);
@@ -328,7 +328,7 @@ static void wctablet_chr_open(Chardev *chr,
                               bool *be_opened,
                               Error **errp)
 {
-    TabletChardev *tablet = WCTABLET_CHARDEV(chr);
+    TabletChardev *tablet = CHARDEV_WCTABLET(chr);
 
     *be_opened = true;
 
-- 
2.26.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]