Skip to content

Commit

Permalink
sclpconsole: Use TYPE_* constants
Browse files Browse the repository at this point in the history
This will make future conversion to use OBJECT_DECLARE* easier.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20200826184334.4120620-5-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
  • Loading branch information
ehabkost committed Aug 27, 2020
1 parent e91830b commit 1a3bae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hw/char/sclpconsole-lm.c
Expand Up @@ -355,7 +355,7 @@ static void console_class_init(ObjectClass *klass, void *data)
}

static const TypeInfo sclp_console_info = {
.name = "sclplmconsole",
.name = TYPE_SCLPLM_CONSOLE,
.parent = TYPE_SCLP_EVENT,
.instance_size = sizeof(SCLPConsoleLM),
.class_init = console_class_init,
Expand Down
2 changes: 1 addition & 1 deletion hw/char/sclpconsole.c
Expand Up @@ -271,7 +271,7 @@ static void console_class_init(ObjectClass *klass, void *data)
}

static const TypeInfo sclp_console_info = {
.name = "sclpconsole",
.name = TYPE_SCLP_CONSOLE,
.parent = TYPE_SCLP_EVENT,
.instance_size = sizeof(SCLPConsole),
.class_init = console_class_init,
Expand Down

0 comments on commit 1a3bae7

Please sign in to comment.