From 1fb40a72da115073b55ed1b92b443c1b80794c44 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Sun, 20 Dec 2020 01:03:36 +0100 Subject: treewide: use more descriptive names for concatenated partitions A few devices in ath79 and ramips use mtd-concat to concatenate individual partitions into a bigger "firmware" or "ubi" partition. However, the original partitions are still present and visible, and one can write to them directly although this might break the actual virtual, concatenated partition. As we cannot do much about the former, let's at least choose more descriptive names than just "firmwareX" in order to indicate the concatenation to the user. He might be less tempted into overwriting a "fwconcat1" than a "firmware1", which might be perceived as an alternate firmware for dual boot etc. This applies the new naming consistently for all relevant devices, i.e. fwconcatX for virtual "firmware" members and ubiconcatX for "ubi" members. While at it, use DT labels and label property consistently, and also use consistent zero-based indexing. Signed-off-by: Adrian Schmutzler --- target/linux/ath79/dts/ar9344_netgear_wndr.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'target/linux/ath79/dts/ar9344_netgear_wndr.dtsi') diff --git a/target/linux/ath79/dts/ar9344_netgear_wndr.dtsi b/target/linux/ath79/dts/ar9344_netgear_wndr.dtsi index 92b0beccd7..26f9db5924 100644 --- a/target/linux/ath79/dts/ar9344_netgear_wndr.dtsi +++ b/target/linux/ath79/dts/ar9344_netgear_wndr.dtsi @@ -82,7 +82,7 @@ ubi-concat { compatible = "mtd-concat"; - devices = <&ubipart0 &ubipart1>; + devices = <&ubiconcat0 &ubiconcat1>; partitions { compatible = "fixed-partitions"; @@ -153,8 +153,8 @@ reg = <0x6c0000 0x400000>; }; - ubipart0: partition@ac0000 { - label = "ubipart0"; + ubiconcat0: partition@ac0000 { + label = "ubiconcat0"; reg = <0xac0000 0x1500000>; }; @@ -170,8 +170,8 @@ read-only; }; - ubipart1: partition@2000000 { - label = "ubipart1"; + ubiconcat1: partition@2000000 { + label = "ubiconcat1"; reg = <0x2000000 0x6000000>; }; }; -- cgit v1.2.3