Skip to contentSkip to conversation

net: phy: realtek: make HWMON support a user-visible Kconfig symbol

PATCH Applied Heiner Kallweit 3 participants 3 messages Feb 3, 2025 – Feb 5, 2025

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 net: phy: realtek: make HWMON support a user-visible Kconfig symbol

Make config symbol REALTEK_PHY_HWMON user-visible, so that users can remove support if not needed.

---
 drivers/net/phy/realtek/Kconfig | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/net/phy/realtek/Kconfig +6 -2
index 31935f147..b05c2a1e9 100644
@@ -4,8 +4,12 @@ config REALTEK_PHY
 	help
 	  Currently supports RTL821x/RTL822x and fast ethernet PHYs
 
+if REALTEK_PHY
+
 config REALTEK_PHY_HWMON
-	def_bool REALTEK_PHY && HWMON
-	depends on !(REALTEK_PHY=y && HWMON=m)
+	bool "HWMON support for Realtek PHYs"
+	depends on HWMON && !(REALTEK_PHY=y && HWMON=m)
 	help
 	  Optional hwmon support for the temperature sensor
+
+endif # REALTEK_PHY
Signature · 1 line
2.48.1
#2 lore raw
In reply to Heiner Kallweit
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Mon, 3 Feb 2025 21:33:39 +0100 you wrote:

Make config symbol REALTEK_PHY_HWMON user-visible, so that users can remove support if not needed.

---
 drivers/net/phy/realtek/Kconfig | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Here is the summary with links:
- [net-next] net: phy: realtek: make HWMON support a user-visible Kconfig symbol

    https://git.kernel.org/netdev/net-next/c/51773846fab2

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html