Skip to content

Commit 693447b

Browse files
author
Izabela Bakollari
committed
net: phy: realtek: make HWMON support a user-visible Kconfig symbol
JIRA: https://issues.redhat.com/browse/RHEL-106145 commit 5177384 Author: Heiner Kallweit <hkallweit1@gmail.com> Date: Mon Feb 3 21:33:39 2025 +0100 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. Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/3466ee92-166a-4b0f-9ae7-42b9e046f333@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Izabela Bakollari <ibakolla@redhat.com>
1 parent a3c9e06 commit 693447b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/net/phy/realtek/Kconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ config REALTEK_PHY
44
help
55
Currently supports RTL821x/RTL822x and fast ethernet PHYs
66

7+
if REALTEK_PHY
8+
79
config REALTEK_PHY_HWMON
8-
def_bool REALTEK_PHY && HWMON
9-
depends on !(REALTEK_PHY=y && HWMON=m)
10+
bool "HWMON support for Realtek PHYs"
11+
depends on HWMON && !(REALTEK_PHY=y && HWMON=m)
1012
help
1113
Optional hwmon support for the temperature sensor
14+
15+
endif # REALTEK_PHY

0 commit comments

Comments
 (0)