Commit 850a8d2d authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by David S. Miller

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: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a90ac762
...@@ -17,7 +17,7 @@ struct sfp_bus { ...@@ -17,7 +17,7 @@ struct sfp_bus {
/* private: */ /* private: */
struct kref kref; struct kref kref;
struct list_head node; struct list_head node;
struct fwnode_handle *fwnode; const struct fwnode_handle *fwnode;
const struct sfp_socket_ops *socket_ops; const struct sfp_socket_ops *socket_ops;
struct device *sfp_dev; struct device *sfp_dev;
...@@ -390,7 +390,7 @@ static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) ...@@ -390,7 +390,7 @@ static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus)
return bus->registered ? bus->upstream_ops : NULL; return bus->registered ? bus->upstream_ops : NULL;
} }
static struct sfp_bus *sfp_bus_get(struct fwnode_handle *fwnode) static struct sfp_bus *sfp_bus_get(const struct fwnode_handle *fwnode)
{ {
struct sfp_bus *sfp, *new, *found = NULL; struct sfp_bus *sfp, *new, *found = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment