device property: constify fwnode_get_phy_mode() argument
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 24 Mar 2023 09:26:47 +0000 (09:26 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Mar 2023 12:27:35 +0000 (13:27 +0100)
commit0a392354dbc3ff748e0856a75592fe8d0fdc7674
tree6c48660b03ede1370d869cc7445dfd4b257a4a0f
parent9d11b13402d1b80f7f3ca5061d75f15cf8002555
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>
drivers/base/property.c
include/linux/property.h