Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp500248ybb; Fri, 20 Mar 2020 03:05:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvLpO2xuKdIYBixbyn52P8qyvIaC0e+ASbmCnzP3pY1PhVYV9hnkYeTJF31/dTJLImX6AlR X-Received: by 2002:a05:6830:4b1:: with SMTP id l17mr5941486otd.275.1584698712545; Fri, 20 Mar 2020 03:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584698712; cv=none; d=google.com; s=arc-20160816; b=KUActj5XT6cat7OauxSWQ16eUJqDAvLTl/r9qZzLu3ImEdstDAAgMe5wLRvugXLbWr VqCX043DqvoJxNNTpn5KUha1X4dk222B3oCJWxmDGZ21DXQKQ+bUQHAWc8tVIkoC6H3x JUxVckqRkGDWddPLM6LxzpAaf3ZM9ASvaP64pEftf5rI+/tOYMx0cYkYE6x74kswa/vu yfZ6Nqes9oTNQ2cnWCNjYAYcsX5dUgjKvpmzSB1sqRA+RTLg3KX7p/cwZv5S+XV1dE4t wjf2yWOlT1NQkUgWY4ly9ITj+MERCTF+roF7/VKYbpW99TOocbqrMIqr+kfoFOi71O3a wxVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tSuC6rirFkPp7o5onqQW1YOkCb60MvR5bv8PP1Z/cQg=; b=DJnv9SbH7m70GXYta0escLgxD0+epNdOMsS8iAWcj94325GplEgZGxvLp/52BUEwtW sFT/j0Hn6rwEHG2uF5jM5x6348tzx1lyjxGWjefx+vnEVtjEBNRO7vLY+wMyrH9yXqP7 inkk4lt9IqLkDnZa2U1kmFDV6cn8jeyeXJdSDfEA1TaE9f6ZzygkGz1OS276O1ESvjoh DXeJP9gmjg8zwvnyt4o13TsAMp66HUt0FQY3zLJG8D8Ju7klbWgxbu7hkNZ0tNVoPVAJ H+e/Rk52b47+CjDOZhz70zBKwGj6JFyxFj1MRCYukN64tah4r2grmDzY6PwSIyHXhNMy 0F4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l21si2455056otd.20.2020.03.20.03.04.56; Fri, 20 Mar 2020 03:05:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727128AbgCTKDg (ORCPT + 99 others); Fri, 20 Mar 2020 06:03:36 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:43285 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726527AbgCTKDf (ORCPT ); Fri, 20 Mar 2020 06:03:35 -0400 Received: by mail-ed1-f67.google.com with SMTP id n25so5498009eds.10; Fri, 20 Mar 2020 03:03:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tSuC6rirFkPp7o5onqQW1YOkCb60MvR5bv8PP1Z/cQg=; b=lp0xIiy6Wn/aibB1fZexd9fa/Fb1OZP9f12DuwFgHgpHk4+Fo4AVv63sPnOhgV3Pm8 ymHlowyYOJxbXqTXBVTi+kI01QpIkjIA6hJ7WBNr77I1efQtzTcLA3rhxx0yvt8raaNK N0y+5DDTVDl9pHKeeska8DVMNOVGZWDPDN8SS7GHLkrXFlSDq1tfNC5V1wY2Hf754H9p n2/SRpDUb7caox81eQI9mrgbZPqRD0UHZpKYZOEmg6EaBEr3EG5b/ayK9MpaWfhgKqbw Q3bdYFGLRu8VtyTY88fa7W1pkLIJpod9h0PD6WBVOd+VFeTueK+0Fa7vawXomRfI3IN8 puJQ== X-Gm-Message-State: ANhLgQ2vEe6t4UEwY4Eg+NtVJ3pYL4XBQLl0GHQq/2IM9p7Oi82x5ngx Nlneq2dEI8p2Zy5dlRVPu3s= X-Received: by 2002:aa7:c658:: with SMTP id z24mr6922331edr.298.1584698613669; Fri, 20 Mar 2020 03:03:33 -0700 (PDT) Received: from pi3 ([194.230.155.125]) by smtp.googlemail.com with ESMTPSA id y14sm330361ejc.85.2020.03.20.03.03.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Mar 2020 03:03:32 -0700 (PDT) Date: Fri, 20 Mar 2020 11:03:29 +0100 From: Krzysztof Kozlowski To: Oleksandr Suvorov Cc: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, Paul Barker , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Laurent Pinchart , Marcel Ziswiler , Igor Opaniuk , Philippe Schenker , Andrius =?utf-8?B?xaB0aWtvbmFz?= , Andy Yan , Chen-Yu Tsai , Christoph Muellner , Daniel Lezcano , Enric Balletbo i Serra , Heiko Stuebner , Hugh Cole-Baker , Jagan Teki , Johan Jonker , Katsuhiro Suzuki , Kever Yang , Kevin Hilman , Kukjin Kim , Marc Zyngier , Markus Reichl , Maxime Ripard , Miquel Raynal , Nick Xie , Philipp Tomsich , Rob Herring , Robin Murphy , Soeren Moch , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: Re: [RFC PATCH 6/7] arm64: dts: pwm: replace polarity constant with macro Message-ID: <20200320100329.GB16931@pi3> References: <20200317123231.2843297-1-oleksandr.suvorov@toradex.com> <20200317123231.2843297-7-oleksandr.suvorov@toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200317123231.2843297-7-oleksandr.suvorov@toradex.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 17, 2020 at 02:32:30PM +0200, Oleksandr Suvorov wrote: > There is the PWM_POLARITY_NORMAL defined and describled in > and used by pwm drivers. > > This patch converts all '0' constant in pwms parameters into > PWM_POLARITY_NORMAL. > > Replace with sed regexp: > 's/(pwms = <&[a-zA-Z_0-9]+ [0-9]+ [0-9]+) 0>/\1 PWM_POLARITY_NORMAL>/' > > Then: > - include pwm.h in some dts/dtsi to fix building errors about undefined > symbols. > - fix the patman warnings about the code format; > > Signed-off-by: Oleksandr Suvorov > --- > > arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts | 2 +- > arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 2 +- > arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 3 ++- > arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 1 + > arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 1 + > arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | 5 +++-- > arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts | 2 +- > arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts | 5 +++-- > arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi | 4 ++-- > arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts | 4 ++-- > arch/arm64/boot/dts/amlogic/meson-g12b-ugoos-am6.dts | 7 ++++--- > arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi | 3 ++- > arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 1 + > arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 3 ++- > arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts | 3 ++- > arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 3 ++- > arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 3 ++- > arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi | 3 ++- > arch/arm64/boot/dts/amlogic/meson-gxl-s805x-p241.dts | 3 ++- > .../boot/dts/amlogic/meson-gxl-s905x-hwacom-amazetv.dts | 3 ++- > arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts | 2 +- > .../arm64/boot/dts/amlogic/meson-gxl-s905x-nexbox-a95x.dts | 3 ++- > arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi | 3 ++- > arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 5 +++-- > arch/arm64/boot/dts/amlogic/meson-gxm-rbox-pro.dts | 3 ++- > arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 4 +++- > arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts | 2 +- > arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts | 7 ++++--- > arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 3 ++- For Exynos: Acked-by: Krzysztof Kozlowski Best regards, Krzysztof