[PATCH-for-10.0 04/12] hw/dma/i82374: Categorize and add description

Philippe Mathieu-Daudé posted 12 patches 1 week ago
[PATCH-for-10.0 04/12] hw/dma/i82374: Categorize and add description
Posted by Philippe Mathieu-Daudé 1 week ago
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 hw/dma/i82374.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/dma/i82374.c b/hw/dma/i82374.c
index 9652d47adcd..0bf69ef399b 100644
--- a/hw/dma/i82374.c
+++ b/hw/dma/i82374.c
@@ -150,6 +150,8 @@ static void i82374_class_init(ObjectClass *klass, void *data)
     dc->realize = i82374_realize;
     dc->vmsd = &vmstate_i82374;
     device_class_set_props(dc, i82374_properties);
+    dc->desc = "Intel 82374 DMA controller";
+    set_bit(DEVICE_CATEGORY_MISC, dc->categories);
 }
 
 static const TypeInfo i82374_info = {
-- 
2.47.1


Re: [PATCH-for-10.0 04/12] hw/dma/i82374: Categorize and add description
Posted by Thomas Huth 1 week ago
On 25/03/2025 23.43, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   hw/dma/i82374.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/hw/dma/i82374.c b/hw/dma/i82374.c
> index 9652d47adcd..0bf69ef399b 100644
> --- a/hw/dma/i82374.c
> +++ b/hw/dma/i82374.c
> @@ -150,6 +150,8 @@ static void i82374_class_init(ObjectClass *klass, void *data)
>       dc->realize = i82374_realize;
>       dc->vmsd = &vmstate_i82374;
>       device_class_set_props(dc, i82374_properties);
> +    dc->desc = "Intel 82374 DMA controller";
> +    set_bit(DEVICE_CATEGORY_MISC, dc->categories);
>   }
>   
>   static const TypeInfo i82374_info = {

Reviewed-by: Thomas Huth <thuth@redhat.com>