brcmsmac: Use DIV_ROUND_CLOSEST directly to make it readable
authorzhong jiang <zhongjiang@huawei.com>
Thu, 5 Sep 2019 16:24:08 +0000 (00:24 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 13 Sep 2019 13:45:17 +0000 (16:45 +0300)
commit3dfb22003f98ab076c2c19121f05d8fe9e150e17
treea1c768d056a5b8b7143291057673fbbd5693349e
parentc57391f4157256a86c85424a16285d27ba92035c
brcmsmac: Use DIV_ROUND_CLOSEST directly to make it readable

The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d
but is perhaps more readable.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c