diff mbox series

[net-next,2/3] net: phy: realtek: rename realtek.c to realtek_main.c

Message ID b67681db-76f2-46fa-9e87-48603b7ee081@gmail.com (mailing list archive)
State New
Delegated to: Netdev Maintainers
Headers show
Series net: phy: realtek: add hwmon support | expand

Checks

Context Check Description
netdev/series_format success Posting correctly formatted
netdev/tree_selection success Clearly marked for net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 1 this patch: 1
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers success CCed 7 of 7 maintainers
netdev/build_clang success Errors and warnings before: 34 this patch: 34
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 5 this patch: 5
netdev/checkpatch warning WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Heiner Kallweit Jan. 10, 2025, 11:47 a.m. UTC
In preparation of adding a source file with hwmon support, rename
realtek.c to realtek_main.c.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/net/phy/Makefile                      | 1 +
 drivers/net/phy/{realtek.c => realtek_main.c} | 0
 2 files changed, 1 insertion(+)
 rename drivers/net/phy/{realtek.c => realtek_main.c} (100%)

Comments

Russell King (Oracle) Jan. 10, 2025, 12:40 p.m. UTC | #1
On Fri, Jan 10, 2025 at 12:47:39PM +0100, Heiner Kallweit wrote:
> In preparation of adding a source file with hwmon support, rename
> realtek.c to realtek_main.c.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
>  drivers/net/phy/Makefile                      | 1 +
>  drivers/net/phy/{realtek.c => realtek_main.c} | 0
>  2 files changed, 1 insertion(+)
>  rename drivers/net/phy/{realtek.c => realtek_main.c} (100%)

Is it worth considering a vendor subdirectory when PHYs end up with
multiple source files?

We already have aquantia, mediatek, mscc, and qcom. Should we be
considering it for this as well?
Heiner Kallweit Jan. 10, 2025, 8:35 p.m. UTC | #2
On 10.01.2025 13:40, Russell King (Oracle) wrote:
> On Fri, Jan 10, 2025 at 12:47:39PM +0100, Heiner Kallweit wrote:
>> In preparation of adding a source file with hwmon support, rename
>> realtek.c to realtek_main.c.
>>
>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>> ---
>>  drivers/net/phy/Makefile                      | 1 +
>>  drivers/net/phy/{realtek.c => realtek_main.c} | 0
>>  2 files changed, 1 insertion(+)
>>  rename drivers/net/phy/{realtek.c => realtek_main.c} (100%)
> 
> Is it worth considering a vendor subdirectory when PHYs end up with
> multiple source files?
> 
> We already have aquantia, mediatek, mscc, and qcom. Should we be
> considering it for this as well?
> 
Yes, I think this would make sense. I'll submit a v2.
diff mbox series

Patch

diff --git a/drivers/net/phy/Makefile b/drivers/net/phy/Makefile
index 39b72b464..ec480e733 100644
--- a/drivers/net/phy/Makefile
+++ b/drivers/net/phy/Makefile
@@ -95,6 +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
+realtek-y += realtek_main.o
 obj-$(CONFIG_REALTEK_PHY)	+= realtek.o
 obj-$(CONFIG_RENESAS_PHY)	+= uPD60620.o
 obj-$(CONFIG_ROCKCHIP_PHY)	+= rockchip.o
diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek_main.c
similarity index 100%
rename from drivers/net/phy/realtek.c
rename to drivers/net/phy/realtek_main.c