wifi: mt76: permit to use alternative cell name to eeprom NVMEM load
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 18 Oct 2023 13:09:41 +0000 (15:09 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 7 Dec 2023 17:50:19 +0000 (18:50 +0100)
commita1f57685fe851677d62d3551aa2de674c25120cf
tree9419515f0cf88e86ae984aef8a53ae848a5eb0c4
parent3d96764e6a22296392866e9fc6318ae912151380
wifi: mt76: permit to use alternative cell name to eeprom NVMEM load

Generilize mt76_get_of_eeprom_from_nvmem to use alternative cell name by
passing the cell name as an arg and expose it.

Rename it to mt76_get_of_data_from_nvmem to better reflect the now more
generic usage.

This is to permit driver to load additional cell, like precal cell.

Tested-by: Shiji Yang <yangshiji66@outlook.com>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/eeprom.c
drivers/net/wireless/mediatek/mt76/mt76.h