]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath11k: use union for vaddr and iaddr in target_mem_chunk
authorMiaoqing Pan <quic_miaoqing@quicinc.com>
Tue, 13 Aug 2024 01:30:27 +0000 (09:30 +0800)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Tue, 18 Feb 2025 17:53:34 +0000 (09:53 -0800)
commit9ee2578c343a2c8b6cf6c43f2f385cdb56a25250
tree49974203e6743d463cc0df4e9f2fbbdeed5a6e1e
parent7b19d5adadfef791d52fd0412a75ebb8f9f27a6b
wifi: ath11k: use union for vaddr and iaddr in target_mem_chunk

The value of 'ab->hw_params.fixed_mem_region' determines that
only one variable 'vaddr' or 'iaddr' is used in target_mem_chunk.
So use an anonymous union instead, easy to check whether the
memory is set or not.

Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-04358-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1

Signed-off-by: Miaoqing Pan <quic_miaoqing@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Link: https://patch.msgid.link/20240813013028.2708111-1-quic_miaoqing@quicinc.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath11k/qmi.c
drivers/net/wireless/ath/ath11k/qmi.h