Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -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));