ath10k: Use of_device_get_match_data() helper
authorMeng Tang <tangmeng@uniontech.com>
Fri, 18 Mar 2022 02:53:31 +0000 (10:53 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 21 Mar 2022 10:48:24 +0000 (12:48 +0200)
commitc4e9705c50121771e7582830359894431f24db73
tree00a05595d825d16435442d720054d4ca0e72d01f
parent2c3fc50591ff3b7c90afb39c6f4ac67a0ffeeb76
ath10k: Use of_device_get_match_data() helper

Only the device data is needed, not the entire struct of_device_id.
Use of_device_get_match_data() instead of of_match_device().

Signed-off-by: Meng Tang <tangmeng@uniontech.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220318025331.23030-1-tangmeng@uniontech.com
drivers/net/wireless/ath/ath10k/ahb.c