diff mbox series

platform/mips: Adjust Kconfig to keep consistency

Message ID 20220918101206.2381321-1-chenhuacai@loongson.cn (mailing list archive)
State Handled Elsewhere
Headers show
Series platform/mips: Adjust Kconfig to keep consistency | expand

Commit Message

Huacai Chen Sept. 18, 2022, 10:12 a.m. UTC
Drop the "if MIPS" and "endif" drivers/platform/Kconfig. Instead add
a "depends on MIPS" to "menuconfig MIPS_PLATFORM_DEVICES" in drivers/
platform/mips/Kconfig, like all the other subdirs are doing.

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
---
 drivers/platform/Kconfig      | 2 --
 drivers/platform/mips/Kconfig | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

Comments

Philippe Mathieu-Daudé Sept. 18, 2022, 8:29 p.m. UTC | #1
On 18/9/22 12:12, Huacai Chen wrote:
> Drop the "if MIPS" and "endif" drivers/platform/Kconfig. Instead add
> a "depends on MIPS" to "menuconfig MIPS_PLATFORM_DEVICES" in drivers/
> platform/mips/Kconfig, like all the other subdirs are doing.
> 
> Suggested-by: Hans de Goede <hdegoede@redhat.com>
> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
> ---
>   drivers/platform/Kconfig      | 2 --
>   drivers/platform/mips/Kconfig | 1 +
>   2 files changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Thomas Bogendoerfer Dec. 8, 2022, 10:52 a.m. UTC | #2
On Sun, Sep 18, 2022 at 06:12:06PM +0800, Huacai Chen wrote:
> Drop the "if MIPS" and "endif" drivers/platform/Kconfig. Instead add
> a "depends on MIPS" to "menuconfig MIPS_PLATFORM_DEVICES" in drivers/
> platform/mips/Kconfig, like all the other subdirs are doing.
> 
> Suggested-by: Hans de Goede <hdegoede@redhat.com>
> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
> ---
>  drivers/platform/Kconfig      | 2 --
>  drivers/platform/mips/Kconfig | 1 +
>  2 files changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/platform/Kconfig b/drivers/platform/Kconfig
> index b437847b6237..8ddfe5ce153f 100644
> --- a/drivers/platform/Kconfig
> +++ b/drivers/platform/Kconfig
> @@ -1,7 +1,5 @@
>  # SPDX-License-Identifier: GPL-2.0-only
> -if MIPS
>  source "drivers/platform/mips/Kconfig"
> -endif
>  
>  source "drivers/platform/goldfish/Kconfig"
>  
> diff --git a/drivers/platform/mips/Kconfig b/drivers/platform/mips/Kconfig
> index 6b51ad01f791..fb4ac4b08e89 100644
> --- a/drivers/platform/mips/Kconfig
> +++ b/drivers/platform/mips/Kconfig
> @@ -6,6 +6,7 @@
>  menuconfig MIPS_PLATFORM_DEVICES
>  	bool "MIPS Platform Specific Device Drivers"
>  	default y
> +	depends on MIPS
>  	help
>  	  Say Y here to get to see options for device drivers of various
>  	  MIPS platforms, including vendor-specific netbook/laptop/desktop
> -- 
> 2.31.1

applied to mips-next.

Thomas.
diff mbox series

Patch

diff --git a/drivers/platform/Kconfig b/drivers/platform/Kconfig
index b437847b6237..8ddfe5ce153f 100644
--- a/drivers/platform/Kconfig
+++ b/drivers/platform/Kconfig
@@ -1,7 +1,5 @@ 
 # SPDX-License-Identifier: GPL-2.0-only
-if MIPS
 source "drivers/platform/mips/Kconfig"
-endif
 
 source "drivers/platform/goldfish/Kconfig"
 
diff --git a/drivers/platform/mips/Kconfig b/drivers/platform/mips/Kconfig
index 6b51ad01f791..fb4ac4b08e89 100644
--- a/drivers/platform/mips/Kconfig
+++ b/drivers/platform/mips/Kconfig
@@ -6,6 +6,7 @@ 
 menuconfig MIPS_PLATFORM_DEVICES
 	bool "MIPS Platform Specific Device Drivers"
 	default y
+	depends on MIPS
 	help
 	  Say Y here to get to see options for device drivers of various
 	  MIPS platforms, including vendor-specific netbook/laptop/desktop