mt76x0: phy: simplify rf configuration routines
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Sun, 14 Oct 2018 16:55:19 +0000 (18:55 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:21:39 +0000 (12:21 +0100)
commitd3caa060e1718928d1514caf81a6312d2f2a9369
tree00c9a8d34bc2e8a3ff8e5f4e777a130d179ec32d
parent9c410782472e37539dff93688d205d31ad7c78ec
mt76x0: phy: simplify rf configuration routines

Simplify mt76x0_phy_vco_cal and mt76x0_phy_set_chan_rf_params
routines using mt76x0_rf_wr, mt76x0_rf_set and mt76x0_rf_clear
helper routines. Moreover over get rid of magic numbers

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/phy.c
drivers/net/wireless/mediatek/mt76/mt76x0/phy.h