File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -3057,7 +3057,7 @@ EXPORT_SYMBOL_GPL(device_phy_find_device);
3057
3057
* and "phy-device" are not supported in ACPI. DT supports all the three
3058
3058
* named references to the phy node.
3059
3059
*/
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 )
3061
3061
{
3062
3062
struct fwnode_handle * phy_node ;
3063
3063
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ struct sfp_bus {
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,7 +390,7 @@ static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus)
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
@@ -593,7 +593,7 @@ static void sfp_upstream_clear(struct sfp_bus *bus)
593
593
* - %-ENOMEM if we failed to allocate the bus.
594
594
* - an error from the upstream's connect_phy() method.
595
595
*/
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 )
597
597
{
598
598
struct fwnode_reference_args ref ;
599
599
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);
1547
1547
struct mdio_device * fwnode_mdio_find_device (struct fwnode_handle * fwnode );
1548
1548
struct phy_device * fwnode_phy_find_device (struct fwnode_handle * phy_fwnode );
1549
1549
struct 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 );
1551
1551
struct phy_device * get_phy_device (struct mii_bus * bus , int addr , bool is_c45 );
1552
1552
int phy_device_register (struct phy_device * phy );
1553
1553
void 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,
557
557
void sfp_upstream_start (struct sfp_bus * bus );
558
558
void sfp_upstream_stop (struct sfp_bus * bus );
559
559
void 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 );
561
561
int sfp_bus_add_upstream (struct sfp_bus * bus , void * upstream ,
562
562
const struct sfp_upstream_ops * ops );
563
563
void sfp_bus_del_upstream (struct sfp_bus * bus );
@@ -619,7 +619,8 @@ static inline void sfp_bus_put(struct sfp_bus *bus)
619
619
{
620
620
}
621
621
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 )
623
624
{
624
625
return NULL ;
625
626
}
You can’t perform that action at this time.
0 commit comments