From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [PATCH V2] dtc: Add ability to delete nodes and properties Date: Tue, 03 Jul 2012 14:12:08 -0600 Message-ID: <4FF35218.4030602@wwwdotorg.org> References: <1339542620-24590-1-git-send-email-swarren@wwwdotorg.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1339542620-24590-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Jon Loeliger , David Gibson Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org On 06/12/2012 05:10 PM, Stephen Warren wrote: > From: Stephen Warren > > 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: > > / { > propname /delprop/; > nodename /delnode/; > }; > > or: > > &noderef /delnode/; > > Signed-off-by: Stephen Warren > --- > v2: Implemented in a significantly different fashion: Rather than actually > deleting nodes/properties as the DT is parsed, simply mark them deleted, > and skip deleted nodes during later processing. This allows implementation > without needing rework of various error-checks, such as duplicate labels. David, Jon, does this look reasonable?