path: root/common
diff options
authorSascha Hauer <>2021-06-24 10:52:09 +0200
committerSascha Hauer <>2021-06-25 09:27:07 +0200
commit303b5b0cc9cce0101fcbe05c7504a0ca5cda95ee (patch)
tree5a243ddd2b58fb12958a28671997555a896fbce2 /common
parent8d21690fa82bbc29cc34005103a2eda63eafabf3 (diff)
firmware: make device_node argument non const
firmwaremgr_find_by_node() takes a const pointer to a device tree node. Most functions that take a device tree node take a non const pointer though, so we can't call them from there. It might be worth looking into making the pointers const for other functions, but we are not there yet. Make the pointer non const for now. Signed-off-by: Sascha Hauer <> Link: Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'common')
1 files changed, 1 insertions, 1 deletions
diff --git a/common/firmware.c b/common/firmware.c
index e4b5025ab1..fa4f585693 100644
--- a/common/firmware.c
+++ b/common/firmware.c
@@ -63,7 +63,7 @@ struct firmware_mgr *firmwaremgr_find(const char *id)
* handler. This allows to retrieve the firmware handler with a phandle from
* the device tree.
-struct firmware_mgr *firmwaremgr_find_by_node(const struct device_node *np)
+struct firmware_mgr *firmwaremgr_find_by_node(struct device_node *np)
struct firmware_mgr *mgr;