wifi: rtw88: pci: Use enum type for rtw_hw_queue_mapping() and ac_to_hwq
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 4 Feb 2023 23:29:58 +0000 (00:29 +0100)
committerKalle Valo <kvalo@kernel.org>
Mon, 13 Feb 2023 15:15:45 +0000 (17:15 +0200)
commit6152b649a70861e72220de9f9abf2fe570967493
treef745ed4278e03e12da1a3b376cd3f7e7911a5631
parent900cad6ef12e1cfacedddf125ba72386e33bc4a6
wifi: rtw88: pci: Use enum type for rtw_hw_queue_mapping() and ac_to_hwq

rtw_hw_queue_mapping() and ac_to_hwq[] hold values of type enum
rtw_tx_queue_type. Change their types to reflect this to make it easier
to understand this part of the code.

While here, also change the array to be static const as it is not
supposed to be modified at runtime.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230204233001.1511643-2-martin.blumenstingl@googlemail.com
drivers/net/wireless/realtek/rtw88/pci.c