Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: rtl8723au: Remove unused EFUSE_Write1Byte function

Function is defined but not used, so remove it.

Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ksenija Stanojevic and committed by
Greg Kroah-Hartman
165483c6 2592872f

-42
-42
drivers/staging/rtl8723au/core/rtw_efuse.c
··· 273 273 return 0xFF; 274 274 } 275 275 276 - /* Copy from WMAC fot EFUSE write 1 byte. */ 277 - void EFUSE_Write1Byte(struct rtw_adapter *Adapter, u16 Address, u8 Value) 278 - { 279 - u8 Bytetemp = {0x00}; 280 - u8 temp = {0x00}; 281 - u32 k = 0; 282 - u16 contentLen = 0; 283 - 284 - EFUSE_GetEfuseDefinition23a(Adapter, EFUSE_WIFI, 285 - TYPE_EFUSE_REAL_CONTENT_LEN, 286 - (void *)&contentLen); 287 - 288 - if (Address < contentLen) { /* E-fuse 512Byte */ 289 - rtl8723au_write8(Adapter, EFUSE_CTRL, Value); 290 - 291 - /* Write E-fuse Register address bit0~7 */ 292 - temp = Address & 0xFF; 293 - rtl8723au_write8(Adapter, EFUSE_CTRL+1, temp); 294 - Bytetemp = rtl8723au_read8(Adapter, EFUSE_CTRL+2); 295 - 296 - /* Write E-fuse Register address bit8~9 */ 297 - temp = ((Address >> 8) & 0x03) | (Bytetemp & 0xFC); 298 - rtl8723au_write8(Adapter, EFUSE_CTRL+2, temp); 299 - 300 - /* Write 0x30[31]= 1 */ 301 - Bytetemp = rtl8723au_read8(Adapter, EFUSE_CTRL+3); 302 - temp = Bytetemp | 0x80; 303 - rtl8723au_write8(Adapter, EFUSE_CTRL+3, temp); 304 - 305 - /* Wait Write-ready (0x30[31]= 0) */ 306 - Bytetemp = rtl8723au_read8(Adapter, EFUSE_CTRL+3); 307 - while (Bytetemp & 0x80) { 308 - Bytetemp = rtl8723au_read8(Adapter, EFUSE_CTRL+3); 309 - k++; 310 - if (k == 100) { 311 - k = 0; 312 - break; 313 - } 314 - } 315 - } 316 - } 317 - 318 276 /* Read one byte from real Efuse. */ 319 277 int efuse_OneByteRead23a(struct rtw_adapter *pAdapter, u16 addr, u8 *data) 320 278 {