]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: remove EepromOrEfuse from struct eeprom_priv
authorMartin Kaiser <martin@kaiser.cx>
Sat, 9 Jul 2022 17:09:48 +0000 (19:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jul 2022 08:06:44 +0000 (10:06 +0200)
commitc94105459a5186f150872d604351ea9104aa8c43
tree4a80f76a5823813bc33e25d9956b50697a44e64b
parent338bbbb3e09d2a0f8a10dc8eff002ec9ed0319c6
staging: r8188eu: remove EepromOrEfuse from struct eeprom_priv

The EepromOrEfuse flag in struct eeprom_priv is used only in the
ReadAdapterInfo8188EU function. We can remove EepromOrEfuse from struct
eeprom_priv.

As the meaning of EepromOrEfuse isn't obvious, there is a macro
is_boot_from_eeprom that's used for checking the value. We don't need the
macro, writing the check as !(eeValue & BOOT_FROM_EEPROM) makes it clear
what is checked.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220709171000.180481-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_halinit.c
drivers/staging/r8188eu/include/hal_intf.h
drivers/staging/r8188eu/include/rtw_eeprom.h