wifi: mt76: split get_of_eeprom in subfunction
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 8 Jul 2023 18:29:35 +0000 (20:29 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 26 Jul 2023 09:15:04 +0000 (11:15 +0200)
commit7d424a990e050ac09a0646edca083dcb4a516855
tree2405afbdfd00d77dfcf4239da240a2d29f9c0b55
parent02a894046d5ab7d0010f39ea54fde7e167919d04
wifi: mt76: split get_of_eeprom in subfunction

In preparation for NVMEM support, split get_of_eeprom() in subfunction
to tidy the code and facilitate the addition of alternative method to
get eeprom data. No behaviour change intended.

While at it also drop OF ifdef checks as OF have stubs and calling
of_get_property would result in the same error returned.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Daniel Golle <daniel@makrotopia.org>
Tested-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/eeprom.c