[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] hw/display/macfb: Classify the "nubus-macfb" as display devi
From: |
Laurent Vivier |
Subject: |
Re: [PATCH] hw/display/macfb: Classify the "nubus-macfb" as display device |
Date: |
Sat, 5 Jun 2021 21:22:08 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
Le 31/05/2021 à 09:32, Thomas Huth a écrit :
> The "nubus-macfb" currently shows up as uncategorized device in
> the output of "-device help". Put it into the display category
> to fix this ugliness.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> hw/display/macfb.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/display/macfb.c b/hw/display/macfb.c
> index ff8bdb846b..d8183b9bbd 100644
> --- a/hw/display/macfb.c
> +++ b/hw/display/macfb.c
> @@ -450,6 +450,7 @@ static void macfb_nubus_class_init(ObjectClass *klass,
> void *data)
> dc->desc = "Nubus Macintosh framebuffer";
> dc->reset = macfb_nubus_reset;
> dc->vmsd = &vmstate_macfb;
> + set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
> device_class_set_props(dc, macfb_nubus_properties);
> }
>
>
Applied to my trivial-patches branch.
Thanks,
Laurent
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH] hw/display/macfb: Classify the "nubus-macfb" as display device,
Laurent Vivier <=