staging: rtl8188eu: efuse_OneByteWrite(): Remove unused parameter bool test
authornavin patidar <navin.patidar@gmail.com>
Fri, 20 Jun 2014 14:59:34 +0000 (20:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 16:52:33 +0000 (09:52 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_efuse.c
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
drivers/staging/rtl8188eu/include/rtw_efuse.h

index 6ba8cbfad4bdc7755e9b16cc1c3e1259030cf1cf..95198885581510b1c7074290de156ec64ec40843 100644 (file)
@@ -89,7 +89,7 @@ u8 efuse_OneByteRead(struct adapter *pAdapter, u16 addr, u8 *data)
 }
 
 /*  11/16/2008 MH Write one byte to reald Efuse. */
-u8 efuse_OneByteWrite(struct adapter *pAdapter, u16 addr, u8 data, bool pseudo)
+u8 efuse_OneByteWrite(struct adapter *pAdapter, u16 addr, u8 data)
 {
        u8 tmpidx = 0;
        u8 result;
@@ -159,7 +159,7 @@ static u8 efuse_read8(struct adapter *padapter, u16 address, u8 *value)
 
 static u8 efuse_write8(struct adapter *padapter, u16 address, u8 *value)
 {
-       return efuse_OneByteWrite(padapter, address, *value, false);
+       return efuse_OneByteWrite(padapter, address, *value);
 }
 
 /*
index 8d769465b18134c7e321b6d73a5eb2de97f102fe..ff5dfff4ed39ca9f744e1fde3b3d5ed2caec215e 100644 (file)
@@ -901,8 +901,8 @@ u8 Efuse_WordEnableDataWrite(struct adapter *pAdapter, u16 efuse_addr, u8 word_e
 
        if (!(word_en&BIT0)) {
                tmpaddr = start_addr;
-               efuse_OneByteWrite(pAdapter, start_addr++, data[0], bPseudoTest);
-               efuse_OneByteWrite(pAdapter, start_addr++, data[1], bPseudoTest);
+               efuse_OneByteWrite(pAdapter, start_addr++, data[0]);
+               efuse_OneByteWrite(pAdapter, start_addr++, data[1]);
 
                efuse_OneByteRead(pAdapter, tmpaddr, &tmpdata[0]);
                efuse_OneByteRead(pAdapter, tmpaddr+1, &tmpdata[1]);
@@ -911,8 +911,8 @@ u8 Efuse_WordEnableDataWrite(struct adapter *pAdapter, u16 efuse_addr, u8 word_e
        }
        if (!(word_en&BIT1)) {
                tmpaddr = start_addr;
-               efuse_OneByteWrite(pAdapter, start_addr++, data[2], bPseudoTest);
-               efuse_OneByteWrite(pAdapter, start_addr++, data[3], bPseudoTest);
+               efuse_OneByteWrite(pAdapter, start_addr++, data[2]);
+               efuse_OneByteWrite(pAdapter, start_addr++, data[3]);
 
                efuse_OneByteRead(pAdapter, tmpaddr, &tmpdata[2]);
                efuse_OneByteRead(pAdapter, tmpaddr+1, &tmpdata[3]);
@@ -921,8 +921,8 @@ u8 Efuse_WordEnableDataWrite(struct adapter *pAdapter, u16 efuse_addr, u8 word_e
        }
        if (!(word_en&BIT2)) {
                tmpaddr = start_addr;
-               efuse_OneByteWrite(pAdapter, start_addr++, data[4], bPseudoTest);
-               efuse_OneByteWrite(pAdapter, start_addr++, data[5], bPseudoTest);
+               efuse_OneByteWrite(pAdapter, start_addr++, data[4]);
+               efuse_OneByteWrite(pAdapter, start_addr++, data[5]);
 
                efuse_OneByteRead(pAdapter, tmpaddr, &tmpdata[4]);
                efuse_OneByteRead(pAdapter, tmpaddr+1, &tmpdata[5]);
@@ -931,8 +931,8 @@ u8 Efuse_WordEnableDataWrite(struct adapter *pAdapter, u16 efuse_addr, u8 word_e
        }
        if (!(word_en&BIT3)) {
                tmpaddr = start_addr;
-               efuse_OneByteWrite(pAdapter, start_addr++, data[6], bPseudoTest);
-               efuse_OneByteWrite(pAdapter, start_addr++, data[7], bPseudoTest);
+               efuse_OneByteWrite(pAdapter, start_addr++, data[6]);
+               efuse_OneByteWrite(pAdapter, start_addr++, data[7]);
 
                efuse_OneByteRead(pAdapter, tmpaddr, &tmpdata[6]);
                efuse_OneByteRead(pAdapter, tmpaddr+1, &tmpdata[7]);
@@ -1115,14 +1115,14 @@ static bool hal_EfusePgPacketWrite2ByteHeader(struct adapter *pAdapter, u8 efuse
 
        while (efuse_addr < efuse_max_available_len) {
                pg_header = ((pTargetPkt->offset & 0x07) << 5) | 0x0F;
-               efuse_OneByteWrite(pAdapter, efuse_addr, pg_header, bPseudoTest);
+               efuse_OneByteWrite(pAdapter, efuse_addr, pg_header);
                efuse_OneByteRead(pAdapter, efuse_addr, &tmp_header);
 
                while (tmp_header == 0xFF) {
                        if (repeatcnt++ > EFUSE_REPEAT_THRESHOLD_)
                                return false;
 
-                       efuse_OneByteWrite(pAdapter, efuse_addr, pg_header, bPseudoTest);
+                       efuse_OneByteWrite(pAdapter, efuse_addr, pg_header);
                        efuse_OneByteRead(pAdapter, efuse_addr, &tmp_header);
                }
 
@@ -1132,14 +1132,14 @@ static bool hal_EfusePgPacketWrite2ByteHeader(struct adapter *pAdapter, u8 efuse
                        pg_header_temp = pg_header;
                        pg_header = ((pTargetPkt->offset & 0x78) << 1) | pTargetPkt->word_en;
 
-                       efuse_OneByteWrite(pAdapter, efuse_addr, pg_header, bPseudoTest);
+                       efuse_OneByteWrite(pAdapter, efuse_addr, pg_header);
                        efuse_OneByteRead(pAdapter, efuse_addr, &tmp_header);
 
                        while (tmp_header == 0xFF) {
                                if (repeatcnt++ > EFUSE_REPEAT_THRESHOLD_)
                                        return false;
 
-                               efuse_OneByteWrite(pAdapter, efuse_addr, pg_header, bPseudoTest);
+                               efuse_OneByteWrite(pAdapter, efuse_addr, pg_header);
                                efuse_OneByteRead(pAdapter, efuse_addr, &tmp_header);
                        }
 
@@ -1180,13 +1180,13 @@ static bool hal_EfusePgPacketWrite1ByteHeader(struct adapter *pAdapter, u8 efuse
 
        pg_header = ((pTargetPkt->offset << 4) & 0xf0) | pTargetPkt->word_en;
 
-       efuse_OneByteWrite(pAdapter, efuse_addr, pg_header, bPseudoTest);
+       efuse_OneByteWrite(pAdapter, efuse_addr, pg_header);
        efuse_OneByteRead(pAdapter, efuse_addr, &tmp_header);
 
        while (tmp_header == 0xFF) {
                if (repeatcnt++ > EFUSE_REPEAT_THRESHOLD_)
                        return false;
-               efuse_OneByteWrite(pAdapter, efuse_addr, pg_header, bPseudoTest);
+               efuse_OneByteWrite(pAdapter, efuse_addr, pg_header);
                efuse_OneByteRead(pAdapter, efuse_addr, &tmp_header);
        }
 
index f9bc50da99838eb416d60539361e907ab535d81d..cd96366c11ffc776e0a311aa392b836d633bf7bf 100644 (file)
@@ -128,7 +128,7 @@ u8 Efuse_CalculateWordCnts(u8 word_en);
 void EFUSE_GetEfuseDefinition(struct adapter *adapt, u8 type, u8 type1,
                              void *out);
 u8 efuse_OneByteRead(struct adapter *adapter, u16 addr, u8 *data);
-u8 efuse_OneByteWrite(struct adapter *adapter, u16 addr, u8 data, bool test);
+u8 efuse_OneByteWrite(struct adapter *adapter, u16 addr, u8 data);
 
 void efuse_ReadEFuse(struct adapter *Adapter, u8 efuseType, u16 _offset,
                u16 _size_byte, u8 *pbuf, bool bPseudoTest);