staging: brcm80211: remove include file sbhndpio.h
[firefly-linux-kernel-4.4.55.git] / drivers / staging / brcm80211 / brcmsmac / phy / wlc_phy_n.c
index c6cce8de1aeeaab5ecf2b1be32641935c088e301..af8291f1bc0f95be60dd9cf1753d343412a9541f 100644 (file)
 #include <siutils.h>
 #include <sbchipc.h>
 #include <hndpmu.h>
-#include <bcmendian.h>
 
 #include <bcmdevs.h>
-#include <sbhndpio.h>
 #include <sbhnddma.h>
 
 #include <wlc_phy_radio.h>
@@ -21478,16 +21476,16 @@ wlc_phy_rssi_compute_nphy(phy_info_t *pi, wlc_d11rxhdr_t *wlc_rxh)
        s16 phyRx0_l, phyRx2_l;
 
        rxpwr = 0;
-       rxpwr0 = ltoh16(rxh->PhyRxStatus_1) & PRXS1_nphy_PWR0_MASK;
-       rxpwr1 = (ltoh16(rxh->PhyRxStatus_1) & PRXS1_nphy_PWR1_MASK) >> 8;
+       rxpwr0 = le16_to_cpu(rxh->PhyRxStatus_1) & PRXS1_nphy_PWR0_MASK;
+       rxpwr1 = (le16_to_cpu(rxh->PhyRxStatus_1) & PRXS1_nphy_PWR1_MASK) >> 8;
 
        if (rxpwr0 > 127)
                rxpwr0 -= 256;
        if (rxpwr1 > 127)
                rxpwr1 -= 256;
 
-       phyRx0_l = ltoh16(rxh->PhyRxStatus_0) & 0x00ff;
-       phyRx2_l = ltoh16(rxh->PhyRxStatus_2) & 0x00ff;
+       phyRx0_l = le16_to_cpu(rxh->PhyRxStatus_0) & 0x00ff;
+       phyRx2_l = le16_to_cpu(rxh->PhyRxStatus_2) & 0x00ff;
        if (phyRx2_l > 127)
                phyRx2_l -= 256;