[PATCH V3] dtc: Add ability to delete nodes and properties

Stephen Warren swarren at nvidia.com
Wed Aug 22 14:12:58 EST 2012


On 08/07/2012 10:50 PM, Stephen Warren wrote:
> From: Stephen Warren <swarren at nvidia.com>
> 
> dtc currently allows the contents of properties to be changed, and the
> contents of nodes to be added to. There are situations where removing
> properties or nodes may be useful. This change implements the following
> syntax to do that:
> 
>     / {
>         /delete-property/ propname;
>         /delete-node/ nodename;
>     };
> 
> or:
> 
>     /delete-node/ &noderef;

David, does this look OK? I believe I've addresses the issues you
requested in order to give your ack. Thanks.

> ---
> v3:
> * Switch syntax from "propname /delprop/" to "/delete-property/ propname".
>   Similar for /delete-node/.
> * Modify for_each_label() to skip deleted labels, and introduce
>   for_each_label_withdel() for the case where we do want to include deleted
>   labels in the iteration. Similar for properties and children.



More information about the devicetree-discuss mailing list