Categorize some uncategorized devices
v2 cover Categorize some uncategorized devices
Hi all,
I found some uncategorized devices and categorize them in these patches.
Thanks,
Gan Qixin
v1->v2: Correct some spelling errors and limit commit message line length to around 70.
Gan Qixin (4):
ssd0323: put it into the 'display' category
ads7846: put it into the 'display' category
nand: put it into the 'storage' category
max111x: put it into the 'misc' category
hw/block/nand.c | 1 + hw/display/ads7846.c | 2 ++ hw/display/ssd0323.c | 1 + hw/misc/max111x.c | 1 + 4 files changed, 5 insertions(+)
Signature · 1 line
2.23.0
PATCH v2 1/4 ssd0323: put it into the 'display' category
The category of the ssd0323 device is not set, put it into the 'display' category.
--- hw/display/ssd0323.c | 1 + 1 file changed, 1 insertion(+)
hw/display/ssd0323.c +1 -0
@@ -370,6 +370,7 @@ static void ssd0323_class_init(ObjectClass *klass, void *data) k->transfer = ssd0323_transfer; k->cs_polarity =SSI_CS_HIGH ; dc->vmsd = &vmstate_ssd0323; +set_bit (DEVICE_CATEGORY_DISPLAY , dc->categories); }static const TypeInfo ssd0323_info = {
Signature · 1 line
2.23.0
Re: [PATCH v2 1/4] ssd0323: put it into the 'display' category
Quoted 14 lines · Gan Qixin
The category of the ssd0323 device is not set, put it into the 'display' category.
Signed-off-by Gan Qixin <[email protected]>--- hw/display/ssd0323.c | 1 + 1 file changed, 1 insertion(+)hw/display/ssd0323.c +0
-0
hw/display/ssd0323.c static void ssd0323_class_init(ObjectClass *klass, void *data) · line 376
Quoted 7 lines
hw/display/ssd0323.c +1
-0@@ -370,6 +370,7 @@ static void ssd0323_class_init(ObjectClass *klass, void *data) k->transfer = ssd0323_transfer; k->cs_polarity =SSI_CS_HIGH ; dc->vmsd = &vmstate_ssd0323; +set_bit (DEVICE_CATEGORY_DISPLAY , dc->categories); }static const TypeInfo ssd0323_info = {
PATCH v2 2/4 ads7846: put it into the 'display' category
In reply to Gan QixinThe category of the ads7846 device is not set, put it into the 'display' category.
--- hw/display/ads7846.c | 2 ++ 1 file changed, 2 insertions(+)
hw/display/ads7846.c +2 -0
@@ -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_DISPLAY , dc->categories); }static const TypeInfo ads7846_info = {
Signature · 1 line
2.23.0
Re: [PATCH v2 2/4] ads7846: put it into the 'display' category
Quoted 16 lines · Gan Qixin
The category of the ads7846 device is not set, put it into the 'display' category.
Signed-off-by Gan Qixin <[email protected]>--- hw/display/ads7846.c | 2 ++ 1 file changed, 2 insertions(+)hw/display/ads7846.c +0
-0@@ -163,10 +163,12 @@ static void ads7846_realize(SSISlave *d, Error **errp)static void ads7846_class_init (ObjectClass *klass,void *data)
hw/display/ads7846.c static void ads7846_realize(SSISlave *d, Error **errp) · line 174
Quoted 10 lines
hw/display/ads7846.c +2
-0{ +DeviceClass *dc =DEVICE_CLASS (klass);SSISlaveClass *k =SSI_SLAVE_CLASS (klass); k->realize = ads7846_realize; k->transfer = ads7846_transfer; +set_bit (DEVICE_CATEGORY_DISPLAY , dc->categories); }static const TypeInfo ads7846_info = {
Re: [PATCH v2 2/4] ads7846: put it into the 'display' category
In reply to Gan QixinQuoted 14 lines · Gan Qixin
The category of the ads7846 device is not set, put it into the 'display' category.
Signed-off-by Gan Qixin <[email protected]>--- hw/display/ads7846.c | 2 ++ 1 file changed, 2 insertions(+)hw/display/ads7846.c +0
-0
hw/display/ads7846.c static void ads7846_realize(SSISlave *d, Error **errp) · line 172
Quoted 10 lines
hw/display/ads7846.c +2
-0@@ -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_DISPLAY , dc->categories); }
This isn't a display, despite being in hw/display. It's a touch-screen controller, so it ought to be in hw/input and be DEVICE_CATEGORY_INPUT.
thanks
-- PMM
RE: [PATCH v2 2/4] ads7846: put it into the 'display' category
Quoted 33 lines
-----Original Message-----
From: Peter Maydell [mailto:[email protected]]
Sent: Thursday, November 12, 2020 7:20 PM
To: ganqixin <[email protected]>
Cc: QEMU Developers <[email protected]>; QEMU Trivial <[email protected]>; Thomas Huth <[email protected]>; Zhanghailiang <[email protected]>; Michael S. Tsirkin <[email protected]>; Laurent Vivier <[email protected]>; Markus Armbruster <[email protected]>; Chenqun (kuhn) <[email protected]>; Philippe Mathieu-Daudé <[email protected]>
Subject: Re: [PATCH v2 2/4] ads7846: put it into the 'display' categoryQuoted 20 lines · Gan Qixin
The category of the ads7846 device is not set, put it into the 'display' category.
Signed-off-by Gan Qixin <[email protected]>--- hw/display/ads7846.c | 2 ++ 1 file changed, 2 insertions(+)hw/display/ads7846.c index renamed from hw/display/ads7846.c +0
-0
023165b2a3..b455cb5acd100644hw/display/ads7846.c +1
-0@@ -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);
Quoted 8 lines
hw/display/ads7846.c static void ads7846_realize(SSISlave *d, Error **errp) · line 172
Quoted 4 lines
hw/display/ads7846.c +1
-0k->realize = ads7846_realize; k->transfer = ads7846_transfer; +set_bit (DEVICE_CATEGORY_DISPLAY , dc->categories); }This isn't a display, despite being in hw/display. It's a touch-screen controller, so it ought to be in hw/input and be
DEVICE_CATEGORY_INPUT.
Thanks for your reply, I will recategorize ads7846.
Gan Qixin
PATCH v2 3/4 nand: put it into the 'storage' category
In reply to Gan QixinThe category of the nand device is not set, put it into the 'storage' category.
--- hw/block/nand.c | 1 + 1 file changed, 1 insertion(+)
hw/block/nand.c +1 -0
@@ -449,6 +449,7 @@ static void nand_class_init(ObjectClass *klass, void *data) dc->reset = nand_reset; dc->vmsd = &vmstate_nand;device_class_set_props (dc, nand_properties); +set_bit (DEVICE_CATEGORY_STORAGE , dc->categories); }static const TypeInfo nand_info = {
Signature · 1 line
2.23.0
Re: [PATCH v2 3/4] nand: put it into the 'storage' category
Quoted 14 lines · Gan Qixin
The category of the nand device is not set, put it into the 'storage' category.
Signed-off-by Gan Qixin <[email protected]>--- hw/block/nand.c | 1 + 1 file changed, 1 insertion(+)hw/block/nand.c +0
-0
hw/block/nand.c static void nand_class_init(ObjectClass *klass, void *data) · line 455
Quoted 7 lines
hw/block/nand.c +1
-0@@ -449,6 +449,7 @@ static void nand_class_init(ObjectClass *klass, void *data) dc->reset = nand_reset; dc->vmsd = &vmstate_nand;device_class_set_props (dc, nand_properties); +set_bit (DEVICE_CATEGORY_STORAGE , dc->categories); }static const TypeInfo nand_info = {
PATCH v2 4/4 max111x: put it into the 'misc' category
In reply to Gan QixinThe category of the max111x device is not set, put it into the 'misc' category.
--- hw/misc/max111x.c | 1 + 1 file changed, 1 insertion(+)
hw/misc/max111x.c +1 -0
@@ -185,6 +185,7 @@ static void max111x_class_init(ObjectClass *klass, void *data) k->transfer = max111x_transfer; dc->reset = max111x_reset; dc->vmsd = &vmstate_max111x; +set_bit (DEVICE_CATEGORY_MISC , dc->categories); }static const TypeInfo max111x_info = {
Signature · 1 line
2.23.0