[OpenWrt-Devel] [PATCH v2 2/2] ramips: fix whitespace issues in DTS files
Adrian Schmutzler
freifunk at adrianschmutzler.de
Fri Sep 20 08:03:03 EDT 2019
This is the result of grepping/searching for several common
whitespace issues like double empty lines, leading spaces, etc.
This patch fixes them for the ramips target.
Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
v2: rebase, added fixes for EnGenius ESR600, AsiaRF AP7621 DTSI
---
target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts | 1 -
target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts | 2 --
target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts | 1 -
target/linux/ramips/dts/mt7620a_engenius_esr600.dts | 4 +---
target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts | 2 +-
target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts | 1 -
target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts | 1 -
target/linux/ramips/dts/mt7621.dtsi | 2 --
target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi | 1 -
target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts | 3 +--
target/linux/ramips/dts/mt7621_elecom_wrc-2533gst.dts | 3 +--
target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts | 1 -
target/linux/ramips/dts/mt7621_mikrotik_rbm11g.dts | 2 --
target/linux/ramips/dts/mt7621_mikrotik_rbm33g.dts | 2 --
target/linux/ramips/dts/mt7621_mtc_wr1201.dts | 1 -
target/linux/ramips/dts/mt7628an_cudy_wr1000.dts | 1 -
target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts | 1 -
target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi | 1 -
target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts | 1 -
target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts | 2 --
target/linux/ramips/dts/rt3052_argus_atp-52b.dts | 1 -
target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts | 1 -
target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts | 1 -
target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts | 1 -
target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi | 1 -
target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi | 2 --
target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts | 1 -
27 files changed, 4 insertions(+), 37 deletions(-)
diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts
index cbd8d4cb80..56c0f8f890 100644
--- a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts
+++ b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts
@@ -137,4 +137,3 @@
};
};
};
-
diff --git a/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts b/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
index a30250e74f..43698d9fd6 100644
--- a/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
+++ b/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
@@ -69,7 +69,6 @@
};
};
-
gpio_export {
compatible = "gpio-export";
#size-cells = <0>;
@@ -81,7 +80,6 @@
};
};
-
&gpio2 {
status = "okay";
};
diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts b/target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts
index eb326ccbd8..782263a068 100644
--- a/target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts
+++ b/target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts
@@ -44,4 +44,3 @@
};
};
};
-
diff --git a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts
index 4636a54736..65d71b99af 100644
--- a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts
+++ b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts
@@ -61,10 +61,8 @@
linux,code = <KEY_WPS_BUTTON>;
debounce-interval = <60>;
};
-
};
-
- };
+};
&gpio1 {
status = "okay";
diff --git a/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts b/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
index 7bf63b3287..8d58d12f02 100644
--- a/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
+++ b/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
@@ -183,5 +183,5 @@
};
&uart {
- status = "okay";
+ status = "okay";
};
diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
index 2d7f6c03a3..2da35936b1 100644
--- a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
+++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
@@ -153,7 +153,6 @@
};
};
-
&gpio1 {
status = "okay";
};
diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
index 10d8ca0eb6..3885428345 100644
--- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
+++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
@@ -13,7 +13,6 @@
bootargs = "console=ttyS0,115200";
};
-
aliases {
led-boot = &led_4g_0;
led-failsafe = &led_4g_0;
diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index 4f69e0902e..849f1f0a09 100644
--- a/target/linux/ramips/dts/mt7621.dtsi
+++ b/target/linux/ramips/dts/mt7621.dtsi
@@ -49,8 +49,6 @@
clock-frequency = <50000000>;
};
-
-
palmbus: palmbus at 1E000000 {
compatible = "palmbus";
reg = <0x1E000000 0x100000>;
diff --git a/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi b/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
index 044b06b3c4..eb5a60bcdc 100644
--- a/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
+++ b/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
@@ -117,4 +117,3 @@
};
};
};
-
diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts b/target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts
index 2135f00ea2..7cbf2cd803 100644
--- a/target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts
+++ b/target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts
@@ -3,8 +3,7 @@
#include "mt7621_elecom_wrc-gst.dtsi"
-
/ {
compatible = "elecom,wrc-1900gst", "mediatek,mt7621-soc";
model = "ELECOM WRC-1900GST";
- };
+};
diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-2533gst.dts b/target/linux/ramips/dts/mt7621_elecom_wrc-2533gst.dts
index 75c71c96d4..aa15674b43 100644
--- a/target/linux/ramips/dts/mt7621_elecom_wrc-2533gst.dts
+++ b/target/linux/ramips/dts/mt7621_elecom_wrc-2533gst.dts
@@ -2,8 +2,7 @@
#include "mt7621_elecom_wrc-gst.dtsi"
-
/ {
compatible = "elecom,wrc-2533gst", "mediatek,mt7621-soc";
model = "ELECOM WRC-2533GST";
- };
+};
diff --git a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
index 19fa7f3131..bd3411b614 100644
--- a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
+++ b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
@@ -126,4 +126,3 @@
};
};
};
-
diff --git a/target/linux/ramips/dts/mt7621_mikrotik_rbm11g.dts b/target/linux/ramips/dts/mt7621_mikrotik_rbm11g.dts
index a03133cf68..f13a779600 100644
--- a/target/linux/ramips/dts/mt7621_mikrotik_rbm11g.dts
+++ b/target/linux/ramips/dts/mt7621_mikrotik_rbm11g.dts
@@ -77,7 +77,6 @@
};
};
-
&spi0 {
status = "okay";
@@ -144,7 +143,6 @@
mtd-mac-address-increment = <1>;
};
-
&pinctrl {
state_default: pinctrl0 {
gpio {
diff --git a/target/linux/ramips/dts/mt7621_mikrotik_rbm33g.dts b/target/linux/ramips/dts/mt7621_mikrotik_rbm33g.dts
index bab97a6a90..45b2182ded 100644
--- a/target/linux/ramips/dts/mt7621_mikrotik_rbm33g.dts
+++ b/target/linux/ramips/dts/mt7621_mikrotik_rbm33g.dts
@@ -87,7 +87,6 @@
};
};
-
&spi0 {
status = "okay";
@@ -168,7 +167,6 @@
mtd-mac-address-increment = <1>;
};
-
&pinctrl {
state_default: pinctrl0 {
gpio {
diff --git a/target/linux/ramips/dts/mt7621_mtc_wr1201.dts b/target/linux/ramips/dts/mt7621_mtc_wr1201.dts
index 34f3840f81..fb3efe6d72 100644
--- a/target/linux/ramips/dts/mt7621_mtc_wr1201.dts
+++ b/target/linux/ramips/dts/mt7621_mtc_wr1201.dts
@@ -142,7 +142,6 @@
};
};
-
&pinctrl {
state_default: pinctrl0 {
gpio {
diff --git a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
index 3dca680b11..aa3f01e68e 100644
--- a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
+++ b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
@@ -100,7 +100,6 @@
label = "firmware";
reg = <0x50000 0x7b0000>;
};
-
};
};
};
diff --git a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
index 6463a5867b..f31e129e9e 100644
--- a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
+++ b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
@@ -90,4 +90,3 @@
&wmac {
status = "okay";
};
-
diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi
index 0f7e63dfe3..6a312ff0b1 100644
--- a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi
+++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi
@@ -12,7 +12,6 @@
};
};
-
&pinctrl {
state_default: pinctrl0 {
gpio {
diff --git a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
index a756900dcd..b5da84c9f8 100644
--- a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
+++ b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
@@ -96,7 +96,6 @@
ralink,function = "gpio";
};
-
i2c {
ralink,group = "i2c";
ralink,function = "gpio";
diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts b/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts
index 16018ff1f0..c0593dd6e9 100644
--- a/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts
+++ b/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts
@@ -118,5 +118,3 @@
};
};
};
-
-
diff --git a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts
index 2fa5c19d04..046fe676c5 100644
--- a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts
+++ b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts
@@ -92,7 +92,6 @@
};
};
-
ðernet {
mtd-mac-address = <&factory 0x4>;
};
diff --git a/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts
index 97f105a631..38ad539eb9 100644
--- a/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts
+++ b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts
@@ -16,7 +16,6 @@
led-upgrade = &led_wps;
};
-
leds {
compatible = "gpio-leds";
diff --git a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
index ffb76e3bf4..d8efb425e8 100644
--- a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
+++ b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
@@ -125,7 +125,6 @@
ralink,mtd-eeprom = <&factory 0>;
};
-
&otg {
status = "okay";
};
diff --git a/target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts b/target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts
index 172a799632..98c099cecc 100644
--- a/target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts
+++ b/target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts
@@ -49,7 +49,6 @@
label = "f9k1109v1:blue:wps";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
-
};
keys {
diff --git a/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi b/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi
index a34c3f3600..98ad1b13e2 100644
--- a/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi
+++ b/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi
@@ -14,7 +14,6 @@
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
};
-
};
&gpio1 {
diff --git a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
index 88b412c8d6..ff30966bf5 100644
--- a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
+++ b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
@@ -9,7 +9,6 @@
};
};
-
&spi0 {
status = "okay";
@@ -96,4 +95,3 @@
&uart {
status = "okay";
};
-
diff --git a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
index 6f1f6097cc..b8db4fdc7f 100644
--- a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
+++ b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
@@ -103,7 +103,6 @@
mtd-mac-address = <&factory 0x28>;
};
-
&esw {
mediatek,portmap = <0x2f>;
mediatek,led_polarity = <0x17>;
--
2.20.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list