diff mbox series

phy: mediatek: Kconfig: Add configuration menu for Mediatek phy drivers

Message ID 20210923025036.348-1-caihuoqing@baidu.com
State Rejected
Headers show
Series phy: mediatek: Kconfig: Add configuration menu for Mediatek phy drivers | expand

Commit Message

Cai,Huoqing Sept. 23, 2021, 2:50 a.m. UTC
Adding a configuration menu to hold many Mediatek phy drivers
helps to make the menu display more concise.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
---
 drivers/phy/mediatek/Kconfig | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Chunfeng Yun (云春峰) Sept. 23, 2021, 9:02 a.m. UTC | #1
On Thu, 2021-09-23 at 10:50 +0800, Cai Huoqing wrote:
> Adding a configuration menu to hold many Mediatek phy drivers
> helps to make the menu display more concise.
> 
> Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
> ---
>  drivers/phy/mediatek/Kconfig | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/phy/mediatek/Kconfig
> b/drivers/phy/mediatek/Kconfig
> index 55f8e6c048ab..5da045813b5a 100644
> --- a/drivers/phy/mediatek/Kconfig
> +++ b/drivers/phy/mediatek/Kconfig
> @@ -2,9 +2,11 @@
>  #
>  # Phy drivers for Mediatek devices
>  #
> +menu "PHY drivers for Mediatek platforms"
> +	depends on ARCH_MEDIATEK || COMPILE_TEST
> +
>  config PHY_MTK_TPHY
>  	tristate "MediaTek T-PHY Driver"
> -	depends on ARCH_MEDIATEK || COMPILE_TEST
>  	depends on OF && OF_ADDRESS
>  	depends on HAS_IOMEM
>  	select GENERIC_PHY
> @@ -18,7 +20,6 @@ config PHY_MTK_TPHY
>  
>  config PHY_MTK_UFS
>  	tristate "MediaTek UFS M-PHY driver"
> -	depends on ARCH_MEDIATEK || COMPILE_TEST
>  	depends on OF
>  	select GENERIC_PHY
>  	help
> @@ -29,7 +30,6 @@ config PHY_MTK_UFS
>  
>  config PHY_MTK_XSPHY
>  	tristate "MediaTek XS-PHY Driver"
> -	depends on ARCH_MEDIATEK || COMPILE_TEST
>  	depends on OF && OF_ADDRESS
>  	depends on HAS_IOMEM
>  	select GENERIC_PHY
> @@ -40,7 +40,6 @@ config PHY_MTK_XSPHY
>  
>  config PHY_MTK_HDMI
>  	tristate "MediaTek HDMI-PHY Driver"
> -	depends on ARCH_MEDIATEK || COMPILE_TEST
>  	depends on COMMON_CLK
>  	depends on OF
>  	select GENERIC_PHY
> @@ -49,9 +48,10 @@ config PHY_MTK_HDMI
>  
>  config PHY_MTK_MIPI_DSI
>  	tristate "MediaTek MIPI-DSI Driver"
> -	depends on ARCH_MEDIATEK || COMPILE_TEST
>  	depends on COMMON_CLK
>  	depends on OF
>  	select GENERIC_PHY
>  	help
>  	  Support MIPI DSI for Mediatek SoCs.
> +
> +endmenu

Reviewed-by: Chunfeng Yun <chunfeng.yun@mediatek.com>

Thanks a lot
diff mbox series

Patch

diff --git a/drivers/phy/mediatek/Kconfig b/drivers/phy/mediatek/Kconfig
index 55f8e6c048ab..5da045813b5a 100644
--- a/drivers/phy/mediatek/Kconfig
+++ b/drivers/phy/mediatek/Kconfig
@@ -2,9 +2,11 @@ 
 #
 # Phy drivers for Mediatek devices
 #
+menu "PHY drivers for Mediatek platforms"
+	depends on ARCH_MEDIATEK || COMPILE_TEST
+
 config PHY_MTK_TPHY
 	tristate "MediaTek T-PHY Driver"
-	depends on ARCH_MEDIATEK || COMPILE_TEST
 	depends on OF && OF_ADDRESS
 	depends on HAS_IOMEM
 	select GENERIC_PHY
@@ -18,7 +20,6 @@  config PHY_MTK_TPHY
 
 config PHY_MTK_UFS
 	tristate "MediaTek UFS M-PHY driver"
-	depends on ARCH_MEDIATEK || COMPILE_TEST
 	depends on OF
 	select GENERIC_PHY
 	help
@@ -29,7 +30,6 @@  config PHY_MTK_UFS
 
 config PHY_MTK_XSPHY
 	tristate "MediaTek XS-PHY Driver"
-	depends on ARCH_MEDIATEK || COMPILE_TEST
 	depends on OF && OF_ADDRESS
 	depends on HAS_IOMEM
 	select GENERIC_PHY
@@ -40,7 +40,6 @@  config PHY_MTK_XSPHY
 
 config PHY_MTK_HDMI
 	tristate "MediaTek HDMI-PHY Driver"
-	depends on ARCH_MEDIATEK || COMPILE_TEST
 	depends on COMMON_CLK
 	depends on OF
 	select GENERIC_PHY
@@ -49,9 +48,10 @@  config PHY_MTK_HDMI
 
 config PHY_MTK_MIPI_DSI
 	tristate "MediaTek MIPI-DSI Driver"
-	depends on ARCH_MEDIATEK || COMPILE_TEST
 	depends on COMMON_CLK
 	depends on OF
 	select GENERIC_PHY
 	help
 	  Support MIPI DSI for Mediatek SoCs.
+
+endmenu