mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-17 22:23:45 -04:00
device property: constify fwnode_get_phy_mode() argument
fwnode_get_phy_mode() does not modify the fwnode argument, merely using it to obtain the phy-mode property value. Therefore, it can be made const. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/E1pfdh9-00EQ8t-HB@rmk-PC.armlinux.org.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9d11b13402
commit
0a392354db
@@ -396,7 +396,7 @@ enum dev_dma_attr device_get_dma_attr(const struct device *dev);
|
||||
const void *device_get_match_data(const struct device *dev);
|
||||
|
||||
int device_get_phy_mode(struct device *dev);
|
||||
int fwnode_get_phy_mode(struct fwnode_handle *fwnode);
|
||||
int fwnode_get_phy_mode(const struct fwnode_handle *fwnode);
|
||||
|
||||
void __iomem *fwnode_iomap(struct fwnode_handle *fwnode, int index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user