On Tue, Mar 17, 2020 at 02:32:30PM +0200, Oleksandr Suvorov wrote: > There is the PWM_POLARITY_NORMAL defined and describled in > <dt-bindings/pwm/pwm.h> 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 <oleksandr.suvorov@xxxxxxxxxxx> > --- > > 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 <krzk@xxxxxxxxxx> Best regards, Krzysztof