File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3057,7 +3057,7 @@ EXPORT_SYMBOL_GPL(device_phy_find_device);
30573057 * and "phy-device" are not supported in ACPI. DT supports all the three
30583058 * named references to the phy node.
30593059 */
3060- struct fwnode_handle * fwnode_get_phy_node (struct fwnode_handle * fwnode )
3060+ struct fwnode_handle * fwnode_get_phy_node (const struct fwnode_handle * fwnode )
30613061{
30623062 struct fwnode_handle * phy_node ;
30633063
Original file line number Diff line number Diff 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
@@ -593,7 +593,7 @@ static void sfp_upstream_clear(struct sfp_bus *bus)
593593 * - %-ENOMEM if we failed to allocate the bus.
594594 * - an error from the upstream's connect_phy() method.
595595 */
596- struct sfp_bus * sfp_bus_find_fwnode (struct fwnode_handle * fwnode )
596+ struct sfp_bus * sfp_bus_find_fwnode (const struct fwnode_handle * fwnode )
597597{
598598 struct fwnode_reference_args ref ;
599599 struct sfp_bus * bus ;
Original file line number Diff line number Diff line change @@ -1547,7 +1547,7 @@ int fwnode_get_phy_id(struct fwnode_handle *fwnode, u32 *phy_id);
15471547struct mdio_device * fwnode_mdio_find_device (struct fwnode_handle * fwnode );
15481548struct phy_device * fwnode_phy_find_device (struct fwnode_handle * phy_fwnode );
15491549struct phy_device * device_phy_find_device (struct device * dev );
1550- struct fwnode_handle * fwnode_get_phy_node (struct fwnode_handle * fwnode );
1550+ struct fwnode_handle * fwnode_get_phy_node (const struct fwnode_handle * fwnode );
15511551struct phy_device * get_phy_device (struct mii_bus * bus , int addr , bool is_c45 );
15521552int phy_device_register (struct phy_device * phy );
15531553void phy_device_free (struct phy_device * phydev );
Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ int sfp_get_module_eeprom_by_page(struct sfp_bus *bus,
557557void sfp_upstream_start (struct sfp_bus * bus );
558558void sfp_upstream_stop (struct sfp_bus * bus );
559559void sfp_bus_put (struct sfp_bus * bus );
560- struct sfp_bus * sfp_bus_find_fwnode (struct fwnode_handle * fwnode );
560+ struct sfp_bus * sfp_bus_find_fwnode (const struct fwnode_handle * fwnode );
561561int sfp_bus_add_upstream (struct sfp_bus * bus , void * upstream ,
562562 const struct sfp_upstream_ops * ops );
563563void sfp_bus_del_upstream (struct sfp_bus * bus );
@@ -619,7 +619,8 @@ static inline void sfp_bus_put(struct sfp_bus *bus)
619619{
620620}
621621
622- static inline struct sfp_bus * sfp_bus_find_fwnode (struct fwnode_handle * fwnode )
622+ static inline struct sfp_bus *
623+ sfp_bus_find_fwnode (const struct fwnode_handle * fwnode )
623624{
624625 return NULL ;
625626}
You can’t perform that action at this time.
0 commit comments