Skip to contentSkip to conversation

stm32f205: Fix SoC type name

PATCH Applied Andreas Färber 3 participants 4 messages Apr 10, 2015 – Apr 13, 2015 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stm32f205: Fix SoC type name

The type name for the SoC device, unlike those of its sub-devices, did not follow the QOM naming conventions. While the usage is internal only, this is exposed through QMP and HMP, so fix it before release.

Cc Alistair Francis <[email protected]>
---
 include/hw/arm/stm32f205_soc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/arm/stm32f205_soc.h +1 -1
index 3cda170..0390eff 100644
@@ -29,7 +29,7 @@
 #include "hw/timer/stm32f2xx_timer.h"
 #include "hw/char/stm32f2xx_usart.h"
 
-#define TYPE_STM32F205_SOC "stm32f205_soc"
+#define TYPE_STM32F205_SOC "stm32f205-soc"
 #define STM32F205_SOC(obj) \
     OBJECT_CHECK(STM32F205State, (obj), TYPE_STM32F205_SOC)
 
Signature · 1 line
2.1.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Andreas Färber

The type name for the SoC device, unlike those of its sub-devices, did not follow the QOM naming conventions. While the usage is internal only, this is exposed through QMP and HMP, so fix it before release.

Cc Alistair Francis <[email protected]>

Looks good to me. Sorry about this slipping in, thanks for fixing it.

Thanks,

Alistair

Quoted 21 lines
---
 include/hw/arm/stm32f205_soc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/arm/stm32f205_soc.h +1 -2
index 3cda170..0390eff 100644
@@ -29,7 +29,7 @@
 #include "hw/timer/stm32f2xx_timer.h"
 #include "hw/char/stm32f2xx_usart.h"
 
-#define TYPE_STM32F205_SOC "stm32f205_soc"
+#define TYPE_STM32F205_SOC "stm32f205-soc"
 #define STM32F205_SOC(obj) \
     OBJECT_CHECK(STM32F205State, (obj), TYPE_STM32F205_SOC)
 
--

2.1.4

#2 lore raw

Am 10.04.2015 um 16:47 schrieb Alistair Francis:

Quoted 11 lines · Andreas Färber
Quoted 6 lines

The type name for the SoC device, unlike those of its sub-devices, did not follow the QOM naming conventions. While the usage is internal only, this is exposed through QMP and HMP, so fix it before release.

Cc Alistair Francis <[email protected]>

Looks good to me. Sorry about this slipping in, thanks for fixing it.

Thanks. BTW a real SoC device would integrate ARMCPU as well - in that case we would need to distinguish -arm-soc and -aarch64-soc, like we do for CPUs.

Regards,
Andreas

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,
Graham Norton; HRB 21284 (AG Nürnberg)
#3 lore raw
In reply to Andreas Färber
Quoted 15 lines · Andreas Färber

The type name for the SoC device, unlike those of its sub-devices, did not follow the QOM naming conventions. While the usage is internal only, this is exposed through QMP and HMP, so fix it before release.

Cc Alistair Francis <[email protected]>
---
 include/hw/arm/stm32f205_soc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/arm/stm32f205_soc.h +0 -0
index 3cda170..0390eff 100644

include/hw/arm/stm32f205_soc.h line 34

Quoted 7 lines
include/hw/arm/stm32f205_soc.h +1 -1
@@ -29,7 +29,7 @@
 #include "hw/timer/stm32f2xx_timer.h"
 #include "hw/char/stm32f2xx_usart.h"
 
-#define TYPE_STM32F205_SOC "stm32f205_soc"
+#define TYPE_STM32F205_SOC "stm32f205-soc"
 #define STM32F205_SOC(obj) \
     OBJECT_CHECK(STM32F205State, (obj), TYPE_STM32F205_SOC)

Applied, thanks.

-- PMM