wifi: rtl8xxxu: Deduplicate the efuse dumping code
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Sat, 17 Dec 2022 14:12:23 +0000 (16:12 +0200)
committerKalle Valo <kvalo@kernel.org>
Wed, 21 Dec 2022 18:51:39 +0000 (20:51 +0200)
commit4f198e720eab187577aabef319bc75d666b441c3
tree0f90e120d4ad6952a483f3a827e76b9e9ac5c1d3
parentba1a6905c71898509fd3e8d1eb790b4e1213126f
wifi: rtl8xxxu: Deduplicate the efuse dumping code

Every chip family except RTL8723AU has a copy of the efuse dumping
code. Remove this and dump the efuse from a single place using a new
function rtl8xxxu_dump_efuse().

Also, use print_hex_dump() to print the efuse instead of a loop and
dev_info(). It shows the ASCII interpretation of the bytes, which is
nice.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/2aa5200a-ee42-e064-16a1-672bed5708c6@gmail.com
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188f.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c