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 <ansuelsmth@gmail.com>
This commit is contained in:
Ansuel Smith
2021-07-12 21:42:41 +02:00
committed by Petr Štetiar
parent 985954ccbd
commit d284e6ef0f
158 changed files with 507 additions and 242 deletions

View File

@@ -181,7 +181,7 @@
phy-mode = "sgmii";
phy-handle = <&phy5>;
mtd-mac-address = <&eeprom 0>;
mtd-mac-address-increment = <(1)>;
mac-address-increment = <(1)>;
};
ethernet@2 {
@@ -190,7 +190,7 @@
phy-mode = "sgmii";
phy-handle = <&phy6>;
mtd-mac-address = <&eeprom 0>;
mtd-mac-address-increment = <(2)>;
mac-address-increment = <(2)>;
};
ethernet@3 {
@@ -199,7 +199,7 @@
phy-mode = "sgmii";
phy-handle = <&phy7>;
mtd-mac-address = <&eeprom 0>;
mtd-mac-address-increment = <(3)>;
mac-address-increment = <(3)>;
};
};
};