aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJeff Johnson <[email protected]>2023-10-09 09:39:42 -0700
committerKalle Valo <[email protected]>2023-10-12 19:08:22 +0300
commit10c65f97b424fcee439463f933140df2a0022f98 (patch)
treecb0fd0bb42695ca33acd13c99343f7ef8c0aaf4e /tools/perf/scripts/python
parent480d230bef0ecd06e72ae3a84117142e38e77503 (diff)
wifi: ath11k: Introduce and use ath11k_sta_to_arsta()
Currently, the logic to return an ath11k_sta pointer, given a ieee80211_sta pointer, uses typecasting throughout the driver. In general, conversion functions are preferable to typecasting since using a conversion function allows the compiler to validate the types of both the input and output parameters. ath11k already defines a conversion function ath11k_vif_to_arvif() for a similar conversion. So introduce ath11k_sta_to_arsta() for this use case, and convert all of the existing typecasting to use this function. No functional changes, compile tested only. Signed-off-by: Jeff Johnson <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions