summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Herring (Arm) <robh@kernel.org>2024-10-10 11:27:15 -0500
committerRob Herring (Arm) <robh@kernel.org>2024-10-14 16:33:24 -0500
commit6ba55951e70bf7a8d89c03aa5612d2e0c81ded6d (patch)
treeea85eaa638f0ce46cb02beb644f4b828a7e5a8bc /lib
parent1d31c6fc86c09a2ed08e71a6bfae74bb1d7b116b (diff)
logic_pio: Constify fwnode_handle
The fwnode_handle passed into find_io_range_by_fwnode() and logic_pio_trans_hwaddr() are not modified, so make them const. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20241010-dt-const-v1-2-87a51f558425@kernel.org Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/logic_pio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/logic_pio.c b/lib/logic_pio.c
index 2ea564a40064..e29496a38d06 100644
--- a/lib/logic_pio.c
+++ b/lib/logic_pio.c
@@ -122,7 +122,7 @@ void logic_pio_unregister_range(struct logic_pio_hwaddr *range)
*
* Traverse the io_range_list to find the registered node for @fwnode.
*/
-struct logic_pio_hwaddr *find_io_range_by_fwnode(struct fwnode_handle *fwnode)
+struct logic_pio_hwaddr *find_io_range_by_fwnode(const struct fwnode_handle *fwnode)
{
struct logic_pio_hwaddr *range, *found_range = NULL;
@@ -186,7 +186,7 @@ resource_size_t logic_pio_to_hwaddr(unsigned long pio)
*
* Returns Logical PIO value if successful, ~0UL otherwise
*/
-unsigned long logic_pio_trans_hwaddr(struct fwnode_handle *fwnode,
+unsigned long logic_pio_trans_hwaddr(const struct fwnode_handle *fwnode,
resource_size_t addr, resource_size_t size)
{
struct logic_pio_hwaddr *range;