diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-04-28 17:51:12 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-04-30 16:26:28 +0300 |
commit | 5cd9fac3a369edd072e8e72a2b5f5abae57c97ed (patch) | |
tree | 0d4edc3d1f3f6a62969d19b13e365bafe5e8bb7b /drivers/net | |
parent | 8a3163b6714be5f544846a2c200916d848556d57 (diff) | |
download | linux-5cd9fac3a369edd072e8e72a2b5f5abae57c97ed.tar.xz |
net: sfp-bus: constify link_modes to sfp_select_interface()
sfp_select_interface() does not modify its link_modes argument, so
make this a const pointer.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://lore.kernel.org/r/E1s15s0-00AHyq-8E@rmk-PC.armlinux.org.uk
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net')
-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 c6e3baf00f23..37c85f1e6534 100644 --- a/drivers/net/phy/sfp-bus.c +++ b/drivers/net/phy/sfp-bus.c @@ -355,7 +355,7 @@ EXPORT_SYMBOL_GPL(sfp_parse_support); * modes mask. */ phy_interface_t sfp_select_interface(struct sfp_bus *bus, - unsigned long *link_modes) + const unsigned long *link_modes) { if (phylink_test(link_modes, 25000baseCR_Full) || phylink_test(link_modes, 25000baseKR_Full) || |