summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/spectral.c
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2014-11-06 08:53:21 +0100
committerJohn W. Linville <linville@tuxdriver.com>2014-11-11 16:31:13 -0500
commitc10b75af4344fe0e678d167cb401a94f565e978c (patch)
tree18f776f1bf13ac6eb7ee5fff131056b8c240e65f /drivers/net/wireless/ath/ath9k/spectral.c
parent21af25d00b8bdf03a899b316d41d31ac3eafaf78 (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/ath/ath9k/spectral.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/spectral.c14
1 files changed, 7 insertions, 7 deletions
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)
}
}
-void ath9k_spectral_init_debug(struct ath_softc *sc)
+void ath9k_spectral_init_debug(struct ath_softc *sc, struct dentry *debugfs_phy)
{
sc->spec_priv.rfs_chan_spec_scan = relay_open("spectral_scan",
- sc->debug.debugfs_phy,
+ debugfs_phy,
1024, 256, &rfs_spec_scan_cb,
NULL);
debugfs_create_file("spectral_scan_ctl",
S_IRUSR | S_IWUSR,
- sc->debug.debugfs_phy, sc,
+ debugfs_phy, sc,
&fops_spec_scan_ctl);
debugfs_create_file("spectral_short_repeat",
S_IRUSR | S_IWUSR,
- sc->debug.debugfs_phy, sc,
+ debugfs_phy, sc,
&fops_spectral_short_repeat);
debugfs_create_file("spectral_count",
S_IRUSR | S_IWUSR,
- sc->debug.debugfs_phy, sc,
+ debugfs_phy, sc,
&fops_spectral_count);
debugfs_create_file("spectral_period",
S_IRUSR | S_IWUSR,
- sc->debug.debugfs_phy, sc,
+ debugfs_phy, sc,
&fops_spectral_period);
debugfs_create_file("spectral_fft_period",
S_IRUSR | S_IWUSR,
- sc->debug.debugfs_phy, sc,
+ debugfs_phy, sc,
&fops_spectral_fft_period);
}