]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: use a local buffer for efuse data
authorMartin Kaiser <martin@kaiser.cx>
Sat, 9 Jul 2022 17:09:51 +0000 (19:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jul 2022 08:06:45 +0000 (10:06 +0200)
commit06679f0720ea523b632c3c1a3ec08f49995e6709
tree8e1179256cc2c379f87add1c21a84fa6f38be4de
parentbbea592c1652b5e179e1a84124e0af40992d1ad9
staging: r8188eu: use a local buffer for efuse data

The efuse_eeprom_data array in struct eeprom_priv is used only by
ReadAdapterInfo8188EU. We can remove efuse_eeprom_data and use a local
buffer instead.

Use EFUSE_MAP_LEN_88E as buffer size. Its value is the same as
HWSET_MAX_SIZE_512. The functions that access the buffer use
EFUSE_MAP_LEN_88E for its size.

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