hw: sd: set category of the sd memory card
PATCH 1/1 hw: sd: set category of the sd memory card
Sets the category of the sd memory card as DEVICE_CATEGORY_STORAGE. Devices should be assigned to one of DEVICE_CATEGORY_XXXX.
--- hw/sd/sd.c | 1 + 1 file changed, 1 insertion(+)
hw/sd/sd.c +1 -0
@@ -2121,6 +2121,7 @@ static void sd_class_init(ObjectClass *klass, void *data) dc->vmsd = &sd_vmstate; dc->reset = sd_reset; dc->bus_type =TYPE_SD_BUS ; +set_bit (DEVICE_CATEGORY_STORAGE , dc->categories); sc->set_voltage = sd_set_voltage; sc->get_dat_lines = sd_get_dat_lines;
Signature · 1 line
2.17.1
Quoted 4 lines · kumar sourav
Sets the category of the sd memory card as
DEVICE_CATEGORY_STORAGE. Devices should be assigned to one ofDEVICE_CATEGORY_XXXX.Signed-off-by kumar sourav <[email protected]>
Quoted 17 lines
--- hw/sd/sd.c | 1 + 1 file changed, 1 insertion(+)hw/sd/sd.c +1
-0@@ -2121,6 +2121,7 @@ static void sd_class_init(ObjectClass *klass, void *data) dc->vmsd = &sd_vmstate; dc->reset = sd_reset; dc->bus_type =TYPE_SD_BUS ; +set_bit (DEVICE_CATEGORY_STORAGE , dc->categories); sc->set_voltage = sd_set_voltage; sc->get_dat_lines = sd_get_dat_lines;
Quoted 14 lines · kumar sourav
Sets the category of the sd memory card as
DEVICE_CATEGORY_STORAGE. Devices should be assigned to one ofDEVICE_CATEGORY_XXXX.Signed-off-by kumar sourav <[email protected]>--- hw/sd/sd.c | 1 + 1 file changed, 1 insertion(+)hw/sd/sd.c +0
-0
hw/sd/sd.c static void sd_class_init(ObjectClass *klass, void *data) · line 2127
Quoted 7 lines
hw/sd/sd.c +1
-0@@ -2121,6 +2121,7 @@ static void sd_class_init(ObjectClass *klass, void *data) dc->vmsd = &sd_vmstate; dc->reset = sd_reset; dc->bus_type =TYPE_SD_BUS ; +set_bit (DEVICE_CATEGORY_STORAGE , dc->categories); sc->set_voltage = sd_set_voltage; sc->get_dat_lines = sd_get_dat_lines;
Laurent Vivier
AppliedQuoted 14 lines · kumar sourav
Sets the category of the sd memory card as
DEVICE_CATEGORY_STORAGE. Devices should be assigned to one ofDEVICE_CATEGORY_XXXX.Signed-off-by kumar sourav <[email protected]>--- hw/sd/sd.c | 1 + 1 file changed, 1 insertion(+)hw/sd/sd.c +0
-0
hw/sd/sd.c static void sd_class_init(ObjectClass *klass, void *data) · line 2127
Quoted 7 lines
hw/sd/sd.c +1
-0@@ -2121,6 +2121,7 @@ static void sd_class_init(ObjectClass *klass, void *data) dc->vmsd = &sd_vmstate; dc->reset = sd_reset; dc->bus_type =TYPE_SD_BUS ; +set_bit (DEVICE_CATEGORY_STORAGE , dc->categories); sc->set_voltage = sd_set_voltage; sc->get_dat_lines = sd_get_dat_lines;
Applied to my trivial-patches branch.
Thanks,
Laurent