[PATCH v3 4/4] max111x: put it into the 'misc' category

Gan Qixin posted 4 patches 5 years, 3 months ago
Maintainers: Peter Maydell <peter.maydell@linaro.org>, Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>, Andrzej Zaborowski <balrogg@gmail.com>
[PATCH v3 4/4] max111x: put it into the 'misc' category
Posted by Gan Qixin 5 years, 3 months ago
The category of the max111x device is not set, put it into the 'misc'
category.

Signed-off-by: Gan Qixin <ganqixin@huawei.com>
---
 hw/misc/max111x.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/misc/max111x.c b/hw/misc/max111x.c
index 7e6723f343..eae0f9b598 100644
--- a/hw/misc/max111x.c
+++ b/hw/misc/max111x.c
@@ -185,6 +185,7 @@ static void max111x_class_init(ObjectClass *klass, void *data)
     k->transfer = max111x_transfer;
     dc->reset = max111x_reset;
     dc->vmsd = &vmstate_max111x;
+    set_bit(DEVICE_CATEGORY_MISC, dc->categories);
 }
 
 static const TypeInfo max111x_info = {
-- 
2.23.0


Re: [PATCH v3 4/4] max111x: put it into the 'misc' category
Posted by Thomas Huth 5 years, 2 months ago
On 12/11/2020 13.58, Gan Qixin wrote:
> The category of the max111x device is not set, put it into the 'misc'
> category.
> 
> Signed-off-by: Gan Qixin <ganqixin@huawei.com>
> ---
>  hw/misc/max111x.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/misc/max111x.c b/hw/misc/max111x.c
> index 7e6723f343..eae0f9b598 100644
> --- a/hw/misc/max111x.c
> +++ b/hw/misc/max111x.c
> @@ -185,6 +185,7 @@ static void max111x_class_init(ObjectClass *klass, void *data)
>      k->transfer = max111x_transfer;
>      dc->reset = max111x_reset;
>      dc->vmsd = &vmstate_max111x;
> +    set_bit(DEVICE_CATEGORY_MISC, dc->categories);
>  }
>  
>  static const TypeInfo max111x_info = {
> 

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