qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 4/8] sclpconsole: Use TYPE_* constants


From: Li Qiang
Subject: Re: [PATCH 4/8] sclpconsole: Use TYPE_* constants
Date: Thu, 27 Aug 2020 09:29:43 +0800

Eduardo Habkost <[email protected]> 于2020年8月27日周四 上午2:45写道:
>
> This will make future conversion to use OBJECT_DECLARE* easier.
>
> Signed-off-by: Eduardo Habkost <[email protected]>

Reviewed-by: Li Qiang <[email protected]>

> ---
> Cc: Cornelia Huck <[email protected]>
> Cc: Halil Pasic <[email protected]>
> Cc: Christian Borntraeger <[email protected]>
> Cc: Thomas Huth <[email protected]>
> Cc: "Marc-André Lureau" <[email protected]>
> Cc: Paolo Bonzini <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> ---
>  hw/char/sclpconsole-lm.c | 2 +-
>  hw/char/sclpconsole.c    | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/char/sclpconsole-lm.c b/hw/char/sclpconsole-lm.c
> index 2b5f37b6a2..5848b4e9c5 100644
> --- a/hw/char/sclpconsole-lm.c
> +++ b/hw/char/sclpconsole-lm.c
> @@ -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,
> diff --git a/hw/char/sclpconsole.c b/hw/char/sclpconsole.c
> index 5c7664905e..d6f7da0818 100644
> --- a/hw/char/sclpconsole.c
> +++ b/hw/char/sclpconsole.c
> @@ -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,
> --
> 2.26.2
>
>



reply via email to

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