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

Configure Feed

Select the types of activity you want to include in your feed.

net: sfp: constify sfp-bus internal fwnode uses

Constify sfp-bus internal fwnode uses, since we do not modify the
fwnode structures.

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>

authored by

Russell King (Oracle) and committed by
David S. Miller
850a8d2d a90ac762

+2 -2
+2 -2
drivers/net/phy/sfp-bus.c
··· 17 17 /* private: */ 18 18 struct kref kref; 19 19 struct list_head node; 20 - struct fwnode_handle *fwnode; 20 + const struct fwnode_handle *fwnode; 21 21 22 22 const struct sfp_socket_ops *socket_ops; 23 23 struct device *sfp_dev; ··· 390 390 return bus->registered ? bus->upstream_ops : NULL; 391 391 } 392 392 393 - static struct sfp_bus *sfp_bus_get(struct fwnode_handle *fwnode) 393 + static struct sfp_bus *sfp_bus_get(const struct fwnode_handle *fwnode) 394 394 { 395 395 struct sfp_bus *sfp, *new, *found = NULL; 396 396