Commit d5efae41 authored by Roland Vossen's avatar Roland Vossen Committed by Greg Kroah-Hartman

staging: brcm80211: resolved checkpatch warnings in LCN phy

Refactored code to not exceed the 80 char limit.
Reviewed-by: default avatarPieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: default avatarHenry Ptasinski <henryp@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7b4d189f
......@@ -4342,39 +4342,25 @@ static void wlc_lcnphy_tbl_init(struct brcms_phy *pi)
}
if (LCNREV_IS(pi->pubpi.phy_rev, 2)) {
const struct phytbl_info *tb;
int l;
if (CHSPEC_IS2G(pi->radio_chanspec)) {
for (idx = 0;
idx < dot11lcnphytbl_rx_gain_info_2G_rev2_sz;
idx++)
l = dot11lcnphytbl_rx_gain_info_2G_rev2_sz;
if (pi->sh->boardflags & BFL_EXTLNA)
wlc_lcnphy_write_table(
pi,
&
dot11lcnphytbl_rx_gain_info_extlna_2G_rev2
[idx]);
tb = dot11lcnphytbl_rx_gain_info_extlna_2G_rev2;
else
wlc_lcnphy_write_table(
pi,
&
dot11lcnphytbl_rx_gain_info_2G_rev2
[idx]);
tb = dot11lcnphytbl_rx_gain_info_2G_rev2;
} else {
for (idx = 0;
idx < dot11lcnphytbl_rx_gain_info_5G_rev2_sz;
idx++)
l = dot11lcnphytbl_rx_gain_info_5G_rev2_sz;
if (pi->sh->boardflags & BFL_EXTLNA_5GHz)
wlc_lcnphy_write_table(
pi,
&
dot11lcnphytbl_rx_gain_info_extlna_5G_rev2
[idx]);
tb = dot11lcnphytbl_rx_gain_info_extlna_5G_rev2;
else
wlc_lcnphy_write_table(
pi,
&
dot11lcnphytbl_rx_gain_info_5G_rev2
[idx]);
tb = dot11lcnphytbl_rx_gain_info_5G_rev2;
}
for (idx = 0; idx < l; idx++)
wlc_lcnphy_write_table(pi, &tb[idx]);
}
if ((pi->sh->boardflags & BFL_FEM)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment