[PATCH ath-next] wifi: ath12k: Use bare functions for ath12k_hw_params::wmi_init

Baochen Qiang baochen.qiang at oss.qualcomm.com
Thu Nov 26 22:25:08 PST 2026



On 11/25/2026 9:44 AM, Jeff Johnson wrote:
> Currently there is an inconsistency among ath12k_hw_params::wmi_init
> initializers, with some using bare function pointers and some using the &
> operator. Normalize them to use bare function pointer syntax without the &
> operator, consistent with other function pointer assignments in the array.
> 
> Compile tested only.
> 
> Signed-off-by: Jeff Johnson <jeff.johnson at oss.qualcomm.com>
> ---
> Issue flagged by Claude Haiku 4.5 during code review, and fixed by the same
> model. Fix reviewed and validated by me.
> ---
>  drivers/net/wireless/ath/ath12k/wifi7/hw.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath12k/wifi7/hw.c b/drivers/net/wireless/ath/ath12k/wifi7/hw.c
> index 48a2f6da16ef..16896118d2f4 100644
> --- a/drivers/net/wireless/ath/ath12k/wifi7/hw.c
> +++ b/drivers/net/wireless/ath/ath12k/wifi7/hw.c
> @@ -743,7 +743,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {
>  		.num_tcl_banks = 48,
>  		.max_tx_ring = 4,
>  
> -		.wmi_init = &ath12k_wifi7_wmi_init_qcn9274,
> +		.wmi_init = ath12k_wifi7_wmi_init_qcn9274,
>  
>  		.qmi_cnss_feature_bitmap = BIT(CNSS_QDSS_CFG_MISS_V01),
>  
> @@ -933,7 +933,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {
>  
>  		.mhi_config = NULL,
>  
> -		.wmi_init = &ath12k_wifi7_wmi_init_qcn9274,
> +		.wmi_init = ath12k_wifi7_wmi_init_qcn9274,
>  
>  		.qmi_cnss_feature_bitmap = BIT(CNSS_QDSS_CFG_MISS_V01),
>  
> @@ -1023,7 +1023,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {
>  		.num_tcl_banks = 48,
>  		.max_tx_ring = 4,
>  		.mhi_config = NULL,
> -		.wmi_init = &ath12k_wifi7_wmi_init_qcn9274,
> +		.wmi_init = ath12k_wifi7_wmi_init_qcn9274,
>  
>  		.qmi_cnss_feature_bitmap = BIT(CNSS_QDSS_CFG_MISS_V01),
>  
> 
> ---
> base-commit: e2d74a4def28e220ad582d17c27e7597690e601e
> change-id: 20261111-ath12k-wmi_init_param-6005e644793f
> 
> 

Reviewed-by: Baochen Qiang <baochen.qiang at oss.qualcomm.com>




More information about the ath12k mailing list