of: dynamic: Add of_changeset_update_prop_string
authorChen-Yu Tsai <wenst@chromium.org>
Wed, 6 Nov 2024 09:33:28 +0000 (17:33 +0800)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 27 Nov 2024 11:03:48 +0000 (12:03 +0100)
commit81de291d86b704de1809cfb06672902d003cf3a3
tree412153c7f2a2ff0da1456cf841304d80d959de0d
parentaaf20f870da056752f6386693cc0d8e25421ef35
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>
drivers/of/dynamic.c
include/linux/of.h