summaryrefslogtreecommitdiff
path: root/include/linux/property.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2023-03-24 12:26:47 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-24 15:27:35 +0300
commit0a392354dbc3ff748e0856a75592fe8d0fdc7674 (patch)
tree6c48660b03ede1370d869cc7445dfd4b257a4a0f /include/linux/property.h
parent9d11b13402d1b80f7f3ca5061d75f15cf8002555 (diff)
downloadlinux-0a392354dbc3ff748e0856a75592fe8d0fdc7674.tar.xz
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>
Diffstat (limited to 'include/linux/property.h')
-rw-r--r--include/linux/property.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/property.h b/include/linux/property.h
index 0a29db15ff34..110634f5db2e 100644
--- a/include/linux/property.h
+++ b/include/linux/property.h
@@ -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);