[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/12] ads7846: put it into the 'input' category
From: |
Thomas Huth |
Subject: |
[PULL 10/12] ads7846: put it into the 'input' category |
Date: |
Tue, 17 Nov 2020 10:57:46 +0100 |
From: Gan Qixin <ganqixin@huawei.com>
The category of the ads7846 device is not set, put it into the 'input'
category.
Signed-off-by: Gan Qixin <ganqixin@huawei.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20201112125824.763182-3-ganqixin@huawei.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
hw/display/ads7846.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/display/ads7846.c b/hw/display/ads7846.c
index 023165b2a3..cb3a431cfd 100644
--- a/hw/display/ads7846.c
+++ b/hw/display/ads7846.c
@@ -163,10 +163,12 @@ static void ads7846_realize(SSISlave *d, Error **errp)
static void ads7846_class_init(ObjectClass *klass, void *data)
{
+ DeviceClass *dc = DEVICE_CLASS(klass);
SSISlaveClass *k = SSI_SLAVE_CLASS(klass);
k->realize = ads7846_realize;
k->transfer = ads7846_transfer;
+ set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
}
static const TypeInfo ads7846_info = {
--
2.18.4
- [PULL 00/12] Misc fixes for 5.2, Thomas Huth, 2020/11/17
- [PULL 01/12] qemu/bswap: Remove unused qemu_bswap_len(), Thomas Huth, 2020/11/17
- [PULL 02/12] configure: Fix the _BSD_SOURCE define for the Haiku build, Thomas Huth, 2020/11/17
- [PULL 07/12] target/microblaze: Fix possible array out of bounds in mmu_write(), Thomas Huth, 2020/11/17
- [PULL 08/12] gitlab-ci: Use $CI_REGISTRY instead of hard-coding registry.gitlab.com, Thomas Huth, 2020/11/17
- [PULL 03/12] configure: Do not build pc-bios/optionrom on Haiku, Thomas Huth, 2020/11/17
- [PULL 09/12] ssd0323: put it into the 'display' category, Thomas Huth, 2020/11/17
- [PULL 04/12] configure: Add a proper check for sys/ioccom.h and use it in tpm_ioctl.h, Thomas Huth, 2020/11/17
- [PULL 05/12] tests/vm: Add Haiku test based on their vagrant images, Thomas Huth, 2020/11/17
- [PULL 06/12] tests/vm: update NetBSD to 9.1, Thomas Huth, 2020/11/17
- [PULL 10/12] ads7846: put it into the 'input' category,
Thomas Huth <=
- [PULL 11/12] nand: put it into the 'storage' category, Thomas Huth, 2020/11/17
- [PULL 12/12] max111x: put it into the 'misc' category, Thomas Huth, 2020/11/17
- Re: [PULL 00/12] Misc fixes for 5.2, Peter Maydell, 2020/11/17