diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2023-03-24 09:23:42 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-03-27 08:12:01 +0100 |
commit | a90ac762d345890b40d88a1385a34a2449c2d75e (patch) | |
tree | e35fc9becf9b0cbaf96c54fc359771ca86eb7ae8 /drivers/net/phy | |
parent | e3cbdcb0fbb61045ef3ce0e072927cc41737f787 (diff) |
net: sfp: make sfp_bus_find_fwnode() take a const fwnode
sfp_bus_find_fwnode() does not write to the fwnode, so let's make it
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 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/sfp-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/sfp-bus.c b/drivers/net/phy/sfp-bus.c index daac293e8ede..8284f29b3644 100644 --- a/drivers/net/phy/sfp-bus.c +++ b/drivers/net/phy/sfp-bus.c @@ -593,7 +593,7 @@ static void sfp_upstream_clear(struct sfp_bus *bus) * - %-ENOMEM if we failed to allocate the bus. * - an error from the upstream's connect_phy() method. */ -struct sfp_bus *sfp_bus_find_fwnode(struct fwnode_handle *fwnode) +struct sfp_bus *sfp_bus_find_fwnode(const struct fwnode_handle *fwnode) { struct fwnode_reference_args ref; struct sfp_bus *bus; |