From d284e6ef0f06551bad5696f16f26e6ff27b065d4 Mon Sep 17 00:00:00 2001 From: Ansuel Smith Date: Mon, 12 Jul 2021 21:42:41 +0200 Subject: treewide: convert mtd-mac-address-increment* to generic implementation Rework patch 681-NET-add-mtd-mac-address-support to implement only the function to read the mac-address from mtd. Generalize mtd-mac-address-increment function so it can be applied to any source of of_get_mac_address. Rename any mtd-mac-address-increment to mac-address-increment. Rename any mtd-mac-address-increment-byte to mac-address-increment-byte. This should make simplify the conversion of target to nvmem implementation. Signed-off-by: Ansuel Smith --- target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi') diff --git a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi index 04eb49bfa3..b92dc8f3f0 100644 --- a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi +++ b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi @@ -35,28 +35,28 @@ status = "okay"; label = "eth1"; mtd-mac-address = <&factory 0x22>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; port@2 { status = "okay"; label = "eth2"; mtd-mac-address = <&factory 0x22>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; port@3 { status = "okay"; label = "eth3"; mtd-mac-address = <&factory 0x22>; - mtd-mac-address-increment = <3>; + mac-address-increment = <3>; }; port@4 { status = "okay"; label = "eth4"; mtd-mac-address = <&factory 0x22>; - mtd-mac-address-increment = <4>; + mac-address-increment = <4>; }; }; }; -- cgit v1.2.3