diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2023-03-24 10:23:53 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-03-27 09:12:01 +0200 |
commit | 4a0faa02d419a6728abef0f1d8a32d8c35ef95e6 (patch) | |
tree | e985d5e9e2dd5f85d82d816e54563d18b1c550d0 /include | |
parent | net: sfp: constify sfp-bus internal fwnode uses (diff) | |
download | linux-4a0faa02d419a6728abef0f1d8a32d8c35ef95e6.tar.xz linux-4a0faa02d419a6728abef0f1d8a32d8c35ef95e6.zip |
net: phy: constify fwnode_get_phy_node() fwnode argument
fwnode_get_phy_node() does not motify the fwnode structure, so make
the argument const,
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 36bf0bbc8efa..db7c0bd67559 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -1547,7 +1547,7 @@ int fwnode_get_phy_id(struct fwnode_handle *fwnode, u32 *phy_id); struct mdio_device *fwnode_mdio_find_device(struct fwnode_handle *fwnode); struct phy_device *fwnode_phy_find_device(struct fwnode_handle *phy_fwnode); struct phy_device *device_phy_find_device(struct device *dev); -struct fwnode_handle *fwnode_get_phy_node(struct fwnode_handle *fwnode); +struct fwnode_handle *fwnode_get_phy_node(const struct fwnode_handle *fwnode); struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45); int phy_device_register(struct phy_device *phy); void phy_device_free(struct phy_device *phydev); |