kernel_samsung_a53x/drivers/net/wireless/realtek/rtlwifi/rtl8192de
Colin Ian King 7c55b7b64e rtlwifi: rtl8192de: make arrays static const, makes object smaller
[ Upstream commit b05897ca8c821a16ac03850c4704fe460b3f21a0 ]

Don't populate arrays the stack but instead make them static const. Replace
array channel_info with channel_all since it contains the same data as
channel_all. Makes object code smaller by 961 bytes.

Before:
   text	   data	    bss	    dec	   hex	filename
 128147	  44250	   1024	 173421	 2a56d	../realtek/rtlwifi/rtl8192de/phy.o

After
   text	   data	    bss	    dec	   hex	filename
 127122	  44314	   1024	 172460	 2a1ac	../realtek/rtlwifi/rtl8192de/phy.o

(gcc version 10.2.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210803144949.79433-2-colin.king@canonical.com
Stable-dep-of: b8b2baad2e65 ("wifi: rtlwifi: rtl8192de: using calculate_bit_shift()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:12:38 +01:00
..
def.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
led.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
led.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy.c rtlwifi: rtl8192de: make arrays static const, makes object smaller 2024-11-18 12:12:38 +01:00
phy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
table.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
table.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00