aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGan Qixin <ganqixin@huawei.com>2020-11-12 20:58:22 +0800
committerThomas Huth <thuth@redhat.com>2020-11-17 10:17:02 +0100
commitbe3701eae3781a56d3e328cb39c30970f133e857 (patch)
tree3bcd58a2dc22ce03abf052954c8e74ef0713701d
parent135271156153fcb3698ec16c93b011ca9b42de85 (diff)
ads7846: put it into the 'input' category
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>
-rw-r--r--hw/display/ads7846.c2
1 files changed, 2 insertions, 0 deletions
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 = {