[PATCH ath12k-ng 1/2] wifi: ath12k: Refactor data path pdev struct
Jeff Johnson
jeff.johnson at oss.qualcomm.com
Wed Oct 1 09:32:26 PDT 2025
On 9/30/2025 11:18 AM, Ripan Deuri wrote:
> diff --git a/drivers/net/wireless/ath/ath12k/dp.c b/drivers/net/wireless/ath/ath12k/dp.c
> index 1bca998117b7..98af9a17dea2 100644
> --- a/drivers/net/wireless/ath/ath12k/dp.c
> +++ b/drivers/net/wireless/ath/ath12k/dp.c
...> +struct ath12k *ath12k_pdev_dp_to_ar(struct ath12k_pdev_dp *dp)
> +{
> + return container_of(dp, struct ath12k, dp);
> +}
> diff --git a/drivers/net/wireless/ath/ath12k/dp.h b/drivers/net/wireless/ath/ath12k/dp.h
> index 546f73e46c41..084e0a3c1bbb 100644
> --- a/drivers/net/wireless/ath/ath12k/dp.h
> +++ b/drivers/net/wireless/ath/ath12k/dp.h
...> +struct ath12k *ath12k_pdev_dp_to_ar(struct ath12k_pdev_dp *dp);
is there a reason this isn't a static inline?
the implementation is trivial and this seems like an example where inlining
would always produce a "better" executable.
/jeff
More information about the ath12k
mailing list