All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/mips: Adjust Kconfig to keep consistency
@ 2022-09-18 10:12 Huacai Chen
  2022-09-18 20:29 ` Philippe Mathieu-Daudé
  2022-12-08 10:52 ` Thomas Bogendoerfer
  0 siblings, 2 replies; 3+ messages in thread
From: Huacai Chen @ 2022-09-18 10:12 UTC (permalink / raw)
  To: Thomas Bogendoerfer
  Cc: linux-mips, Xuefeng Li, Jiaxun Yang, Huacai Chen, Hans de Goede

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] platform/mips: Adjust Kconfig to keep consistency
  2022-09-18 10:12 [PATCH] platform/mips: Adjust Kconfig to keep consistency Huacai Chen
@ 2022-09-18 20:29 ` Philippe Mathieu-Daudé
  2022-12-08 10:52 ` Thomas Bogendoerfer
  1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-09-18 20:29 UTC (permalink / raw)
  To: Huacai Chen, Thomas Bogendoerfer
  Cc: linux-mips, Xuefeng Li, Jiaxun Yang, Hans de Goede

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>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] platform/mips: Adjust Kconfig to keep consistency
  2022-09-18 10:12 [PATCH] platform/mips: Adjust Kconfig to keep consistency Huacai Chen
  2022-09-18 20:29 ` Philippe Mathieu-Daudé
@ 2022-12-08 10:52 ` Thomas Bogendoerfer
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Bogendoerfer @ 2022-12-08 10:52 UTC (permalink / raw)
  To: Huacai Chen; +Cc: linux-mips, Xuefeng Li, Jiaxun Yang, Hans de Goede

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.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-08 11:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-18 10:12 [PATCH] platform/mips: Adjust Kconfig to keep consistency Huacai Chen
2022-09-18 20:29 ` Philippe Mathieu-Daudé
2022-12-08 10:52 ` Thomas Bogendoerfer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.