]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: phy: move realtek PHY driver to its own subdirectory
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 11 Jan 2025 20:50:19 +0000 (21:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Jan 2025 22:51:32 +0000 (14:51 -0800)
In preparation of adding a source file with hwmon support, move the
Realtek PHY driver to its own subdirectory and rename realtek.c to
realtek_main.c.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/c566551b-c915-4e34-9b33-129a6ddd6e4c@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/Kconfig
drivers/net/phy/Makefile
drivers/net/phy/realtek/Kconfig [new file with mode: 0644]
drivers/net/phy/realtek/Makefile [new file with mode: 0644]
drivers/net/phy/realtek/realtek_main.c [moved from drivers/net/phy/realtek.c with 100% similarity]

index 9ad3dbfd2f99a774e3c892f378f41c9e729c6cae..41c15a2c20379d7dc25bf13be59407950facd6c4 100644 (file)
@@ -350,10 +350,7 @@ config QSEMI_PHY
        help
          Currently supports the qs6612
 
-config REALTEK_PHY
-       tristate "Realtek PHYs"
-       help
-         Supports the Realtek 821x PHY.
+source "drivers/net/phy/realtek/Kconfig"
 
 config RENESAS_PHY
        tristate "Renesas PHYs"
index 39b72b4642873a0aeb53ae014dbabd0f6d55ac14..c8dac6e922780cf844dd42b362d44e3e9345e7ac 100644 (file)
@@ -95,7 +95,7 @@ obj-$(CONFIG_NXP_CBTX_PHY)    += nxp-cbtx.o
 obj-$(CONFIG_NXP_TJA11XX_PHY)  += nxp-tja11xx.o
 obj-y                          += qcom/
 obj-$(CONFIG_QSEMI_PHY)                += qsemi.o
-obj-$(CONFIG_REALTEK_PHY)      += realtek.o
+obj-$(CONFIG_REALTEK_PHY)      += realtek/
 obj-$(CONFIG_RENESAS_PHY)      += uPD60620.o
 obj-$(CONFIG_ROCKCHIP_PHY)     += rockchip.o
 obj-$(CONFIG_SMSC_PHY)         += smsc.o
diff --git a/drivers/net/phy/realtek/Kconfig b/drivers/net/phy/realtek/Kconfig
new file mode 100644 (file)
index 0000000..5b9e6e6
--- /dev/null
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config REALTEK_PHY
+       tristate "Realtek PHYs"
+       help
+         Currently supports RTL821x/RTL822x and fast ethernet PHYs
diff --git a/drivers/net/phy/realtek/Makefile b/drivers/net/phy/realtek/Makefile
new file mode 100644 (file)
index 0000000..996a806
--- /dev/null
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
+realtek-y                      += realtek_main.o
+obj-$(CONFIG_REALTEK_PHY)      += realtek.o