OSDN Git Service

device property: Constify a few fwnode APIs
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 24 Mar 2023 11:27:20 +0000 (13:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Mar 2023 12:37:20 +0000 (13:37 +0100)
commit5b9ff0ba11042096bfb396e506fa9038e6a61de7
tree41133710443b3769186400456a4a9ee76adaf255
parent0a392354dbc3ff748e0856a75592fe8d0fdc7674
device property: Constify a few fwnode APIs

The fwnode parameter is not altered in the following APIs:

- fwnode_get_next_parent_dev()
- fwnode_is_ancestor_of()
- fwnode_graph_get_endpoint_count()

so constify them.

Reported-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230324112720.71315-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/property.c
include/linux/property.h