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

Configure Feed

Select the types of activity you want to include in your feed.

net: phy: move definition of genphy_c45_driver to phy_device.c

genphy_c45_read_status() is exported, so we can move definition of
genphy_c45_driver to phy_device.c and make it static. This helps
to clean up phy.h a little.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/ead3ab17-22d0-4cd3-901c-3d493ab851e6@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
00ee2537 94a8e4a8

+7 -10
-7
drivers/net/phy/phy-c45.c
··· 1573 1573 return ret; 1574 1574 } 1575 1575 EXPORT_SYMBOL(genphy_c45_ethtool_set_eee); 1576 - 1577 - struct phy_driver genphy_c45_driver = { 1578 - .phy_id = 0xffffffff, 1579 - .phy_id_mask = 0xffffffff, 1580 - .name = "Generic Clause 45 PHY", 1581 - .read_status = genphy_c45_read_status, 1582 - };
+7
drivers/net/phy/phy_device.c
··· 59 59 int (*run)(struct phy_device *phydev); 60 60 }; 61 61 62 + static struct phy_driver genphy_c45_driver = { 63 + .phy_id = 0xffffffff, 64 + .phy_id_mask = 0xffffffff, 65 + .name = "Generic Clause 45 PHY", 66 + .read_status = genphy_c45_read_status, 67 + }; 68 + 62 69 __ETHTOOL_DECLARE_LINK_MODE_MASK(phy_basic_features) __ro_after_init; 63 70 EXPORT_SYMBOL_GPL(phy_basic_features); 64 71
-3
include/linux/phy.h
··· 1941 1941 struct ethtool_keee *data); 1942 1942 int genphy_c45_an_config_eee_aneg(struct phy_device *phydev); 1943 1943 1944 - /* Generic C45 PHY driver */ 1945 - extern struct phy_driver genphy_c45_driver; 1946 - 1947 1944 /* The gen10g_* functions are the old Clause 45 stub */ 1948 1945 int gen10g_config_aneg(struct phy_device *phydev); 1949 1946