Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c485b9a5 authored by Grant Likely's avatar Grant Likely Committed by Alistair Strachan
Browse files

UPSTREAM: of: Refactor __of_node_alloc() into __of_node_dup()



Add a node argument to __of_node_alloc() and rename it to
__of_node_dup() so that it can also be used to duplicate a node with
its properties. This is important for the overlay code so that it can
create new nodes without using separate changeset items for every single
property.

At the same time rework the overlay code to use the new function and
drop the extra changeset items.

Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
(cherry picked from commit e51795815ef1a7adc018cbaf05aac46e3d24eda8)
Bug: 109890997
Change-Id: I5b43c2883a93bf730306e9bb32da8de141b35015
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 4c9db29c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment