Skip to content

Commit

Permalink
net: phy: move realtek PHY driver to its own subdirectory
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiner Kallweit authored and Jakub Kicinski committed Jan 14, 2025
1 parent 3d483a1 commit 1416a9b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 1 addition & 4 deletions drivers/net/phy/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/phy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions drivers/net/phy/realtek/Kconfig
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions drivers/net/phy/realtek/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
realtek-y += realtek_main.o
obj-$(CONFIG_REALTEK_PHY) += realtek.o
File renamed without changes.

0 comments on commit 1416a9b

Please sign in to comment.