Re: [PATCH v3] staging: rtl8723bs: remove GEN_CMD_CODE macro and callback array
From: Greg KH
Date: Tue Jul 07 2026 - 05:57:51 EST
On Thu, Apr 02, 2026 at 08:51:58PM -0400, Xiyuan Guo wrote:
> The GEN_CMD_CODE macro and the rtw_cmd_callback function pointer array
> add unnecessary layers of indirection and make the code difficult to
> follow. Remove the GEN_CMD_CODE macro and replace the function pointer
> array dispatcher in rtw_cmd_thread() with a direct switch statement.
>
> Additionally, rename the associated command enums from CamelCase to
> UPPERCASE_SNAKE_CASE to comply with the standard Linux kernel coding
> style.
>
> Signed-off-by: Xiyuan Guo <tommyguo039@xxxxxxxxx>
> ---
> Change in v3:
> - Dropped unrelated whitespace cleanup on the #endif comment.
No longer applies to the tree :(
Also, I'd really like this to be tested on real hardware as you are
doing a lot of changes that are not necessarily just "coding style"
issues.
thanks,
greg k-h