diff options
author | Oleksij Rempel <linux@rempel-privat.de> | 2014-11-06 02:53:21 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-11-11 16:31:13 -0500 |
commit | c10b75af4344fe0e678d167cb401a94f565e978c (patch) | |
tree | 18f776f1bf13ac6eb7ee5fff131056b8c240e65f /drivers/net/wireless | |
parent | 21af25d00b8bdf03a899b316d41d31ac3eafaf78 (diff) |
ath9k: use struct dentry by ath9k_spectral_init_debug
this will alow us to make ath_softc independent code.
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/spectral.c | 14 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/spectral.h | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index 2a2a17df5fb3..f0a802e8b0de 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c | |||
@@ -1330,7 +1330,7 @@ int ath9k_init_debug(struct ath_hw *ah) | |||
1330 | 1330 | ||
1331 | ath9k_dfs_init_debug(sc); | 1331 | ath9k_dfs_init_debug(sc); |
1332 | ath9k_tx99_init_debug(sc); | 1332 | ath9k_tx99_init_debug(sc); |
1333 | ath9k_spectral_init_debug(sc); | 1333 | ath9k_spectral_init_debug(sc, sc->debug.debugfs_phy); |
1334 | 1334 | ||
1335 | debugfs_create_file("dma", S_IRUSR, sc->debug.debugfs_phy, sc, | 1335 | debugfs_create_file("dma", S_IRUSR, sc->debug.debugfs_phy, sc, |
1336 | &fops_dma); | 1336 | &fops_dma); |
diff --git a/drivers/net/wireless/ath/ath9k/spectral.c b/drivers/net/wireless/ath/ath9k/spectral.c index 555fc2a6851e..d2723803494d 100644 --- a/drivers/net/wireless/ath/ath9k/spectral.c +++ b/drivers/net/wireless/ath/ath9k/spectral.c | |||
@@ -514,30 +514,30 @@ void ath9k_spectral_deinit_debug(struct ath_softc *sc) | |||
514 | } | 514 | } |
515 | } | 515 | } |
516 | 516 | ||
517 | void ath9k_spectral_init_debug(struct ath_softc *sc) | 517 | void ath9k_spectral_init_debug(struct ath_softc *sc, struct dentry *debugfs_phy) |
518 | { | 518 | { |
519 | sc->spec_priv.rfs_chan_spec_scan = relay_open("spectral_scan", | 519 | sc->spec_priv.rfs_chan_spec_scan = relay_open("spectral_scan", |
520 | sc->debug.debugfs_phy, | 520 | debugfs_phy, |
521 | 1024, 256, &rfs_spec_scan_cb, | 521 | 1024, 256, &rfs_spec_scan_cb, |
522 | NULL); | 522 | NULL); |
523 | debugfs_create_file("spectral_scan_ctl", | 523 | debugfs_create_file("spectral_scan_ctl", |
524 | S_IRUSR | S_IWUSR, | 524 | S_IRUSR | S_IWUSR, |
525 | sc->debug.debugfs_phy, sc, | 525 | debugfs_phy, sc, |
526 | &fops_spec_scan_ctl); | 526 | &fops_spec_scan_ctl); |
527 | debugfs_create_file("spectral_short_repeat", | 527 | debugfs_create_file("spectral_short_repeat", |
528 | S_IRUSR | S_IWUSR, | 528 | S_IRUSR | S_IWUSR, |
529 | sc->debug.debugfs_phy, sc, | 529 | debugfs_phy, sc, |
530 | &fops_spectral_short_repeat); | 530 | &fops_spectral_short_repeat); |
531 | debugfs_create_file("spectral_count", | 531 | debugfs_create_file("spectral_count", |
532 | S_IRUSR | S_IWUSR, | 532 | S_IRUSR | S_IWUSR, |
533 | sc->debug.debugfs_phy, sc, | 533 | debugfs_phy, sc, |
534 | &fops_spectral_count); | 534 | &fops_spectral_count); |
535 | debugfs_create_file("spectral_period", | 535 | debugfs_create_file("spectral_period", |
536 | S_IRUSR | S_IWUSR, | 536 | S_IRUSR | S_IWUSR, |
537 | sc->debug.debugfs_phy, sc, | 537 | debugfs_phy, sc, |
538 | &fops_spectral_period); | 538 | &fops_spectral_period); |
539 | debugfs_create_file("spectral_fft_period", | 539 | debugfs_create_file("spectral_fft_period", |
540 | S_IRUSR | S_IWUSR, | 540 | S_IRUSR | S_IWUSR, |
541 | sc->debug.debugfs_phy, sc, | 541 | debugfs_phy, sc, |
542 | &fops_spectral_fft_period); | 542 | &fops_spectral_fft_period); |
543 | } | 543 | } |
diff --git a/drivers/net/wireless/ath/ath9k/spectral.h b/drivers/net/wireless/ath/ath9k/spectral.h index dfe6f68cf5a3..22695892963f 100644 --- a/drivers/net/wireless/ath/ath9k/spectral.h +++ b/drivers/net/wireless/ath/ath9k/spectral.h | |||
@@ -129,7 +129,7 @@ static inline u8 spectral_bitmap_weight(u8 *bins) | |||
129 | return bins[0] & 0x3f; | 129 | return bins[0] & 0x3f; |
130 | } | 130 | } |
131 | 131 | ||
132 | void ath9k_spectral_init_debug(struct ath_softc *sc); | 132 | void ath9k_spectral_init_debug(struct ath_softc *sc, struct dentry *debugfs_phy); |
133 | void ath9k_spectral_deinit_debug(struct ath_softc *sc); | 133 | void ath9k_spectral_deinit_debug(struct ath_softc *sc); |
134 | 134 | ||
135 | void ath9k_spectral_scan_trigger(struct ieee80211_hw *hw); | 135 | void ath9k_spectral_scan_trigger(struct ieee80211_hw *hw); |