[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 10/12] tosa-ssp: put it into the 'misc' category
From: |
Gan Qixin |
Subject: |
[PATCH v2 10/12] tosa-ssp: put it into the 'misc' category |
Date: |
Mon, 30 Nov 2020 16:36:28 +0800 |
The category of the tosa-ssp device is not set, put it into the 'misc'
category.
Signed-off-by: Gan Qixin <ganqixin@huawei.com>
---
Cc: Peter Maydell <peter.maydell@linaro.org>
---
hw/arm/tosa.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/arm/tosa.c b/hw/arm/tosa.c
index fe88ed89fe..0e3461c8ed 100644
--- a/hw/arm/tosa.c
+++ b/hw/arm/tosa.c
@@ -292,10 +292,12 @@ static const TypeInfo tosa_dac_info = {
static void tosa_ssp_class_init(ObjectClass *klass, void *data)
{
+ DeviceClass *dc = DEVICE_CLASS(klass);
SSISlaveClass *k = SSI_SLAVE_CLASS(klass);
k->realize = tosa_ssp_realize;
k->transfer = tosa_ssp_tansfer;
+ set_bit(DEVICE_CATEGORY_MISC, dc->categories);
}
static const TypeInfo tosa_ssp_info = {
--
2.23.0
- [PATCH v2 03/12] vmmouse: put it into the 'input' category, (continued)
- [PATCH v2 03/12] vmmouse: put it into the 'input' category, Gan Qixin, 2020/11/30
- [PATCH v2 05/12] mc146818rtc: put it into the 'misc' category, Gan Qixin, 2020/11/30
- [PATCH v2 04/12] nvdimm: put it into the 'storage' category, Gan Qixin, 2020/11/30
- [PATCH v2 06/12] ipmi: put some ipmi devices into the correct category, Gan Qixin, 2020/11/30
- [PATCH v2 07/12] tpm: put some tpm devices into the correct category, Gan Qixin, 2020/11/30
- [PATCH v2 08/12] AMDVI-PCI: put it into the 'misc' category, Gan Qixin, 2020/11/30
- [PATCH v2 11/12] spitz: put some Spitz-family devices into the correct category, Gan Qixin, 2020/11/30
- [PATCH v2 12/12] SPI flash devices: put them into the 'storage' category, Gan Qixin, 2020/11/30
- [PATCH v2 10/12] tosa-ssp: put it into the 'misc' category,
Gan Qixin <=
- [PATCH v2 09/12] u2f-passthru: put it into the 'misc' category, Gan Qixin, 2020/11/30