staging: rtl8723bs: replace underutilized struct by array variable
authorDeepak R Varma <drv@mailo.com>
Sat, 5 Nov 2022 11:15:52 +0000 (16:45 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Nov 2022 15:26:49 +0000 (16:26 +0100)
commit11454ddeb2f68a1c03b90f0c2bba18570f1a3019
tree65b0168701c0a93adfefffb9d27a41ec7efc27c3
parentbb5b5e2104ca000888df89e35ff42c677df22671
staging: rtl8723bs: replace underutilized struct by array variable

For structure iqk_matrix_regs_setting, only the "Value" member variable
is utilized whereas the other struct members are only declared but not
utilised. Replace the struct declaration and implementation by an
equivalent variable similar to the only used struct member variable.
While in there, update the macro mixed case names to uppercase style.
The resultant code is simpler and is easy to maintain.

Suggested-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Deepak R Varma <drv@mailo.com>
Link: https://lore.kernel.org/r/Y2ZF6O1KU3zZ6r3C@qemulion
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c
drivers/staging/rtl8723bs/hal/odm.h