Commit 18907f20 authored by Colin Ian King's avatar Colin Ian King Committed by Kalle Valo

brcmsmac: use ARRAY_SIZE on rfseq_updategainu_events

Use the ARRAY_SIZE macro on rfseq_updategainu_events to determine
size of the array. Improvement suggested by coccinelle.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarArend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 53ac7935
...@@ -16049,8 +16049,7 @@ static void wlc_phy_workarounds_nphy_gainctrl(struct brcms_phy *pi) ...@@ -16049,8 +16049,7 @@ static void wlc_phy_workarounds_nphy_gainctrl(struct brcms_phy *pi)
wlc_phy_set_rfseq_nphy(pi, NPHY_RFSEQ_UPDATEGAINU, wlc_phy_set_rfseq_nphy(pi, NPHY_RFSEQ_UPDATEGAINU,
rfseq_updategainu_events, rfseq_updategainu_events,
rfseq_updategainu_dlys, rfseq_updategainu_dlys,
sizeof(rfseq_updategainu_events) / ARRAY_SIZE(rfseq_updategainu_events));
sizeof(rfseq_updategainu_events[0]));
mod_phy_reg(pi, 0x153, (0xff << 8), (90 << 8)); mod_phy_reg(pi, 0x153, (0xff << 8), (90 << 8));
......
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