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

net: phy: move PHY package MMD access function declarations from phy.h to phylib.h

These functions are used by PHY drivers only, therefore move their
declaration to phylib.h.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/406c8a20-b62e-4ee3-b174-b566724a0876@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Heiner Kallweit and committed by
Paolo Abeni
43e2aa56 89694a56

+6 -8
+6
drivers/net/phy/phylib.h
··· 15 15 u32 regnum); 16 16 int __phy_package_write(struct phy_device *phydev, unsigned int addr_offset, 17 17 u32 regnum, u16 val); 18 + int __phy_package_read_mmd(struct phy_device *phydev, 19 + unsigned int addr_offset, int devad, 20 + u32 regnum); 21 + int __phy_package_write_mmd(struct phy_device *phydev, 22 + unsigned int addr_offset, int devad, 23 + u32 regnum, u16 val); 18 24 bool phy_package_init_once(struct phy_device *phydev); 19 25 bool phy_package_probe_once(struct phy_device *phydev); 20 26 int phy_package_join(struct phy_device *phydev, int base_addr, size_t priv_size);
-8
include/linux/phy.h
··· 2107 2107 struct kernel_hwtstamp_config *config, 2108 2108 struct netlink_ext_ack *extack); 2109 2109 2110 - int __phy_package_read_mmd(struct phy_device *phydev, 2111 - unsigned int addr_offset, int devad, 2112 - u32 regnum); 2113 - 2114 2110 int phy_package_read_mmd(struct phy_device *phydev, 2115 2111 unsigned int addr_offset, int devad, 2116 2112 u32 regnum); 2117 - 2118 - int __phy_package_write_mmd(struct phy_device *phydev, 2119 - unsigned int addr_offset, int devad, 2120 - u32 regnum, u16 val); 2121 2113 2122 2114 int phy_package_write_mmd(struct phy_device *phydev, 2123 2115 unsigned int addr_offset, int devad,