diff mbox series

[06/41] sunxi: Move MMC_SUNXI_SLOT to Kconfig

Message ID 20221127152536.1556469-6-trini@konsulko.com
State Changes Requested
Delegated to: Andre Przywara
Headers show
Series [01/41] xenguest_arm64: Disable networking support more fully | expand

Commit Message

Tom Rini Nov. 27, 2022, 3:25 p.m. UTC
This value is always defined to 0, so move it to Kconfig as being set to
always 0.

Cc: Andre Przywara <andre.przywara@arm.com>
C: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
 arch/arm/mach-sunxi/Kconfig    | 4 ++++
 include/configs/sunxi-common.h | 3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)

Comments

Andre Przywara Nov. 27, 2022, 8:39 p.m. UTC | #1
On Sun, 27 Nov 2022 10:25:01 -0500
Tom Rini <trini@konsulko.com> wrote:

Hi Tom,

> This value is always defined to 0, so move it to Kconfig as being set to
> always 0.

Yeah, but that's not needed in Kconfig at all, it's just a name for the
first MMC slot, its definition being misplaced in the config directory.
I will send a patch that removes the CONFIG_ prefix and moves it into
the C file using it, so you can drop this patch here.

Thanks,
Andre

> Cc: Andre Przywara <andre.przywara@arm.com>
> C: Icenowy Zheng <icenowy@aosc.io>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
>  arch/arm/mach-sunxi/Kconfig    | 4 ++++
>  include/configs/sunxi-common.h | 3 ---
>  2 files changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
> index dbe6005daab1..c311a6d03523 100644
> --- a/arch/arm/mach-sunxi/Kconfig
> +++ b/arch/arm/mach-sunxi/Kconfig
> @@ -685,6 +685,10 @@ config MMC1_PINS_PH
>  	---help---
>  	Select this option for boards where mmc1 uses the Port H pinmux.
>  
> +config MMC_SUNXI_SLOT
> +	int
> +	default 0
> +
>  config MMC_SUNXI_SLOT_EXTRA
>  	int "mmc extra slot number"
>  	default -1
> diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
> index 1677aafad03b..496139f34635 100644
> --- a/include/configs/sunxi-common.h
> +++ b/include/configs/sunxi-common.h
> @@ -69,9 +69,6 @@
>  #define PHYS_SDRAM_0			CFG_SYS_SDRAM_BASE
>  #define PHYS_SDRAM_0_SIZE		0x80000000 /* 2 GiB */
>  
> -/* mmc config */
> -#define CONFIG_MMC_SUNXI_SLOT		0
> -
>  /*
>   * Miscellaneous configurable options
>   */
Tom Rini Nov. 27, 2022, 8:46 p.m. UTC | #2
On Sun, Nov 27, 2022 at 08:39:44PM +0000, Andre Przywara wrote:
> On Sun, 27 Nov 2022 10:25:01 -0500
> Tom Rini <trini@konsulko.com> wrote:
> 
> Hi Tom,
> 
> > This value is always defined to 0, so move it to Kconfig as being set to
> > always 0.
> 
> Yeah, but that's not needed in Kconfig at all, it's just a name for the
> first MMC slot, its definition being misplaced in the config directory.
> I will send a patch that removes the CONFIG_ prefix and moves it into
> the C file using it, so you can drop this patch here.

That works for me, thanks!
diff mbox series

Patch

diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index dbe6005daab1..c311a6d03523 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -685,6 +685,10 @@  config MMC1_PINS_PH
 	---help---
 	Select this option for boards where mmc1 uses the Port H pinmux.
 
+config MMC_SUNXI_SLOT
+	int
+	default 0
+
 config MMC_SUNXI_SLOT_EXTRA
 	int "mmc extra slot number"
 	default -1
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 1677aafad03b..496139f34635 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -69,9 +69,6 @@ 
 #define PHYS_SDRAM_0			CFG_SYS_SDRAM_BASE
 #define PHYS_SDRAM_0_SIZE		0x80000000 /* 2 GiB */
 
-/* mmc config */
-#define CONFIG_MMC_SUNXI_SLOT		0
-
 /*
  * Miscellaneous configurable options
  */