diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2025-03-03 23:15:09 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-03-06 06:13:52 +0300 |
commit | 2c8cd9783f464958fc6c10bc70715c3676f50f23 (patch) | |
tree | b3c54eaff8c56625599994a6b47d245557e5a917 /drivers/net/phy/phylib.h | |
parent | 61dc9cae8727ea422e1fcbcc37a3d9ba2ff51c91 (diff) | |
download | linux-2c8cd9783f464958fc6c10bc70715c3676f50f23.tar.xz |
net: phy: add getters for public members in struct phy_package_shared
Add getters for public members, this prepares for making struct
phy_package_shared private to phylib. Declare the getters in a new header
file phylib.h, which will be used by PHY drivers only.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/c6da0b27-4479-4717-9e16-643821b76bd8@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/phy/phylib.h')
-rw-r--r-- | drivers/net/phy/phylib.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/phy/phylib.h b/drivers/net/phy/phylib.h new file mode 100644 index 000000000000..a42e1fc079cb --- /dev/null +++ b/drivers/net/phy/phylib.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * phylib header + */ + +#ifndef __PHYLIB_H +#define __PHYLIB_H + +struct device_node; +struct phy_device; + +struct device_node *phy_package_get_node(struct phy_device *phydev); +void *phy_package_get_priv(struct phy_device *phydev); + +#endif /* __PHYLIB_H */ |