]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath11k: refactor CE remap & unmap
authorJeff Johnson <quic_jjohnson@quicinc.com>
Fri, 3 May 2024 10:34:37 +0000 (13:34 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 3 May 2024 13:15:16 +0000 (16:15 +0300)
commit8b9ea752a9d67b0b668b38e7efa34fffba8b5331
tree0e800a437c8efcd07c727e8c57e4fc7ba5ebfe84
parentacaa84009fade2ae80922861aa9464e89c9d3ef0
wifi: ath11k: refactor CE remap & unmap

Currently the logic that handles hw_params->ce_remap is inline code,
both for doing the remap and the unmap. An upcoming change needs to do
the unmap in a second place, so refactor the unmap logic into a
separate function. And although it is only called from one place,
refactor the remap logic as well to have functional symmetry.

No functional changes, compile tested only.

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240430-ce-unmap-v1-1-e468328f95d9@quicinc.com
drivers/net/wireless/ath/ath11k/ahb.c