diff mbox

[for-2.3] stm32f205: Fix SoC type name

Message ID 1428676676-23056-1-git-send-email-afaerber@suse.de
State New
Headers show

Commit Message

Andreas Färber April 10, 2015, 2:37 p.m. UTC
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 <alistair.francis@xilinx.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 include/hw/arm/stm32f205_soc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alistair Francis April 10, 2015, 2:47 p.m. UTC | #1
On Sat, Apr 11, 2015 at 12:37 AM, Andreas Färber <afaerber@suse.de> wrote:
> 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 <alistair.francis@xilinx.com>
> Signed-off-by: Andreas Färber <afaerber@suse.de>

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

Reviewed-by: Alistair Francis <alistair@alistair23.me>

Thanks,

Alistair

> ---
>  include/hw/arm/stm32f205_soc.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/hw/arm/stm32f205_soc.h b/include/hw/arm/stm32f205_soc.h
> index 3cda170..0390eff 100644
> --- a/include/hw/arm/stm32f205_soc.h
> +++ b/include/hw/arm/stm32f205_soc.h
> @@ -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
>
>
Andreas Färber April 10, 2015, 2:51 p.m. UTC | #2
Am 10.04.2015 um 16:47 schrieb Alistair Francis:
> On Sat, Apr 11, 2015 at 12:37 AM, Andreas Färber <afaerber@suse.de> wrote:
>> 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 <alistair.francis@xilinx.com>
>> Signed-off-by: Andreas Färber <afaerber@suse.de>
> 
> Looks good to me. Sorry about this slipping in, thanks for fixing it.
> 
> Reviewed-by: Alistair Francis <alistair@alistair23.me>

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
Peter Maydell April 13, 2015, 10:36 a.m. UTC | #3
On 10 April 2015 at 15:37, Andreas Färber <afaerber@suse.de> wrote:
> 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 <alistair.francis@xilinx.com>
> Signed-off-by: Andreas Färber <afaerber@suse.de>
> ---
>  include/hw/arm/stm32f205_soc.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/hw/arm/stm32f205_soc.h b/include/hw/arm/stm32f205_soc.h
> index 3cda170..0390eff 100644
> --- a/include/hw/arm/stm32f205_soc.h
> +++ b/include/hw/arm/stm32f205_soc.h
> @@ -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
diff mbox

Patch

diff --git a/include/hw/arm/stm32f205_soc.h b/include/hw/arm/stm32f205_soc.h
index 3cda170..0390eff 100644
--- a/include/hw/arm/stm32f205_soc.h
+++ b/include/hw/arm/stm32f205_soc.h
@@ -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)