mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -06:00
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>
This commit is contained in:
parent
1352711561
commit
be3701eae3
1 changed files with 2 additions and 0 deletions
|
@ -163,10 +163,12 @@ static void ads7846_realize(SSISlave *d, Error **errp)
|
||||||
|
|
||||||
static void ads7846_class_init(ObjectClass *klass, void *data)
|
static void ads7846_class_init(ObjectClass *klass, void *data)
|
||||||
{
|
{
|
||||||
|
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||||
SSISlaveClass *k = SSI_SLAVE_CLASS(klass);
|
SSISlaveClass *k = SSI_SLAVE_CLASS(klass);
|
||||||
|
|
||||||
k->realize = ads7846_realize;
|
k->realize = ads7846_realize;
|
||||||
k->transfer = ads7846_transfer;
|
k->transfer = ads7846_transfer;
|
||||||
|
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const TypeInfo ads7846_info = {
|
static const TypeInfo ads7846_info = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue