summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChen-Yu Tsai <wenst@chromium.org>2024-11-06 17:33:28 +0800
committerWolfram Sang <wsa+renesas@sang-engineering.com>2024-11-27 12:03:48 +0100
commit81de291d86b704de1809cfb06672902d003cf3a3 (patch)
tree412153c7f2a2ff0da1456cf841304d80d959de0d /include
parentaaf20f870da056752f6386693cc0d8e25421ef35 (diff)
downloadlinux-81de291d86b704de1809cfb06672902d003cf3a3.tar.gz
linux-81de291d86b704de1809cfb06672902d003cf3a3.tar.bz2
linux-81de291d86b704de1809cfb06672902d003cf3a3.zip
of: dynamic: Add of_changeset_update_prop_string
Add a helper function to add string property updates to an OF changeset. This is similar to of_changeset_add_prop_string(), but instead of adding the property (and failing if it exists), it will update the property. This shall be used later in the DT hardware prober. Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/of.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 086a60f3b8a6..d0307e3b093d 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -1651,6 +1651,10 @@ static inline int of_changeset_add_prop_u32(struct of_changeset *ocs,
return of_changeset_add_prop_u32_array(ocs, np, prop_name, &val, 1);
}
+int of_changeset_update_prop_string(struct of_changeset *ocs,
+ struct device_node *np,
+ const char *prop_name, const char *str);
+
int of_changeset_add_prop_bool(struct of_changeset *ocs, struct device_node *np,
const char *prop_name);