Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
51773846 d5fdfe48

+6 -2
+6 -2
drivers/net/phy/realtek/Kconfig
··· 4 4 help 5 5 Currently supports RTL821x/RTL822x and fast ethernet PHYs 6 6 7 + if REALTEK_PHY 8 + 7 9 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) 10 12 help 11 13 Optional hwmon support for the temperature sensor 14 + 15 + endif # REALTEK_PHY