Skip to content

Commit 850a8d2

Browse files
Russell King (Oracle)davem330
authored andcommitted
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) <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a90ac76 commit 850a8d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/phy/sfp-bus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct sfp_bus {
1717
/* private: */
1818
struct kref kref;
1919
struct list_head node;
20-
struct fwnode_handle *fwnode;
20+
const struct fwnode_handle *fwnode;
2121

2222
const struct sfp_socket_ops *socket_ops;
2323
struct device *sfp_dev;
@@ -390,7 +390,7 @@ static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus)
390390
return bus->registered ? bus->upstream_ops : NULL;
391391
}
392392

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)
394394
{
395395
struct sfp_bus *sfp, *new, *found = NULL;
396396

0 commit comments

Comments
 (0)