Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754737AbdLOJAC (ORCPT ); Fri, 15 Dec 2017 04:00:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:55634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753868AbdLOI77 (ORCPT ); Fri, 15 Dec 2017 03:59:59 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 20D102192A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=krzk@kernel.org X-Google-Smtp-Source: ACJfBouI9lvGzFWMepM7CM3tbBCP9nEkxEsvrcxDiIOj+uz+zPEYru+plrU+ClO+lN7cabFPAmHxAIaHUA6Tf6FsyPk= MIME-Version: 1.0 In-Reply-To: <20171214165350.27850-1-malat@debian.org> References: <20171214165350.27850-1-malat@debian.org> From: Krzysztof Kozlowski Date: Fri, 15 Dec 2017 09:59:55 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm: dts: Remove leading 0x and 0s from bindings notation To: Mathieu Malaterre Cc: Rob Herring , =?UTF-8?Q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Mark Rutland , Russell King , Jesper Nilsson , Lars Persson , Niklas Cassel , Nicolas Ferre , Alexandre Belloni , Ray Jui , Scott Branden , Jon Mason , bcm-kernel-feedback-list@broadcom.com, Florian Fainelli , Sekhar Nori , Kevin Hilman , Kukjin Kim , Shawn Guo , Sascha Hauer , Fabio Estevam , Santosh Shilimkar , Dinh Nguyen , Viresh Kumar , Shiraz Hashim , Jun Nie , Baoyou Xie , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@axis.com, linux-samsung-soc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3125 Lines: 65 On Thu, Dec 14, 2017 at 5:53 PM, Mathieu Malaterre wrote: > Improve the DTS files by removing all the leading "0x" and zeros to fix the > following dtc warnings: > > Warning (unit_address_format): Node /XXX unit name should not have leading "0x" > > and > > Warning (unit_address_format): Node /XXX unit name should not have leading 0s > > Converted using the following command: > > find . -type f \( -iname *.dts -o -iname *.dtsi \) -exec sed -E -i -e "s/@0x([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" -e "s/@0+([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" {} + > > For simplicity, two sed expressions were used to solve each warnings separately. > > To make the regex expression more robust a few other issues were resolved, > namely setting unit-address to lower case, and adding a whitespace before the > the opening curly brace: > > https://elinux.org/Device_Tree_Linux#Linux_conventions > > This is a follow up to commit 4c9847b7375a ("dt-bindings: Remove leading 0x from bindings notation") > > Reported-by: David Daney > Suggested-by: Rob Herring > Signed-off-by: Mathieu Malaterre > --- > arch/arm/boot/dts/am3517.dtsi | 4 +-- > arch/arm/boot/dts/arm-realview-eb.dtsi | 18 +++++++------- > arch/arm/boot/dts/arm-realview-pb1176.dts | 18 +++++++------- > arch/arm/boot/dts/arm-realview-pb11mp.dts | 18 +++++++------- > arch/arm/boot/dts/arm-realview-pbx.dtsi | 18 +++++++------- > arch/arm/boot/dts/artpec6.dtsi | 2 +- > arch/arm/boot/dts/at91sam9261.dtsi | 2 +- > arch/arm/boot/dts/at91sam9261ek.dts | 2 +- > arch/arm/boot/dts/at91sam9263.dtsi | 2 +- > arch/arm/boot/dts/at91sam9263ek.dts | 2 +- > arch/arm/boot/dts/at91sam9g25ek.dts | 2 +- > arch/arm/boot/dts/at91sam9g45.dtsi | 2 +- > arch/arm/boot/dts/at91sam9m10g45ek.dts | 2 +- > arch/arm/boot/dts/atlas7.dtsi | 12 ++++----- > arch/arm/boot/dts/bcm11351.dtsi | 2 +- > arch/arm/boot/dts/bcm21664.dtsi | 2 +- > arch/arm/boot/dts/bcm283x.dtsi | 2 +- > arch/arm/boot/dts/da850-lcdk.dts | 4 +-- > arch/arm/boot/dts/dm8148-evm.dts | 8 +++--- > arch/arm/boot/dts/dm8168-evm.dts | 8 +++--- > arch/arm/boot/dts/dra62x-j5eco-evm.dts | 8 +++--- > arch/arm/boot/dts/exynos5420.dtsi | 36 +++++++++++++-------------- > arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 2 +- > arch/arm/boot/dts/imx7d.dtsi | 2 +- > arch/arm/boot/dts/keystone-k2e-netcp.dtsi | 2 +- > arch/arm/boot/dts/keystone-k2hk-netcp.dtsi | 2 +- > arch/arm/boot/dts/keystone-k2l-netcp.dtsi | 2 +- > arch/arm/boot/dts/omap3-cm-t3x.dtsi | 8 +++--- > arch/arm/boot/dts/omap3-evm-37xx.dts | 8 +++--- > arch/arm/boot/dts/omap3-lilly-a83x.dtsi | 8 +++--- > arch/arm/boot/dts/s3c2416.dtsi | 2 +- For Exynos and S3C: Acked-by: Krzysztof Kozlowski Best regards, Krzysztof