Message ID | 20230204233001.1511643-1-martin.blumenstingl@googlemail.com |
---|---|
Headers | show |
Series | rtw88: four small code-cleanups and refactorings | expand |
On Sun, Feb 05, 2023 at 12:29:58AM +0100, Martin Blumenstingl wrote: > 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>
On Sun, Feb 05, 2023 at 12:29:59AM +0100, Martin Blumenstingl wrote: > This makes it easier to understand which values are allowed for the > "queue" variable when using the enum instead of an u8. > > Acked-by: Ping-Ke Shih <pkshih@realtek.com> > Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Reviewed-by: Simon Horman <simon.horman@corigine.com>