Skip to content
Snippets Groups Projects
Commit be3701ea authored by Gan Qixin's avatar Gan Qixin Committed by Thomas Huth
Browse files

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: default avatarGan Qixin <ganqixin@huawei.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Message-Id: <20201112125824.763182-3-ganqixin@huawei.com>
Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
parent 13527115
No related branches found
No related tags found
No related merge requests found
......@@ -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 = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment