diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2016-10-16 22:59:06 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-11-15 15:55:37 +0100 |
commit | b40ded2ad75cc251e7ce4ae0db7098e5a0157200 (patch) | |
tree | eefa2fba971e80e419cec7039dead72c7bc5df7d /drivers/net/wireless/ath/main.c | |
parent | Documentation: dt: net: add ath9k wireless device binding (diff) | |
download | linux-b40ded2ad75cc251e7ce4ae0db7098e5a0157200.tar.xz linux-b40ded2ad75cc251e7ce4ae0db7098e5a0157200.zip |
ath9k: add a helper to get the string representation of ath_bus_type
This can be used when the ath_bus_type has to be presented in a log
message or firmware filename.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/main.c')
-rw-r--r-- | drivers/net/wireless/ath/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/main.c b/drivers/net/wireless/ath/main.c index 338d72337604..89f4b0513946 100644 --- a/drivers/net/wireless/ath/main.c +++ b/drivers/net/wireless/ath/main.c @@ -90,3 +90,10 @@ void ath_printk(const char *level, const struct ath_common* common, va_end(args); } EXPORT_SYMBOL(ath_printk); + +const char *ath_bus_type_strings[] = { + [ATH_PCI] = "pci", + [ATH_AHB] = "ahb", + [ATH_USB] = "usb", +}; +EXPORT_SYMBOL(ath_bus_type_strings); |