ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries

Use the helper to get rid of the file operations per debugfs file. The
struct ath9k_softc pointer is set as device driver data to be obtained
in the seq_file read operation.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Arend van Spriel
2014-11-09 11:32:00 +01:00
committed by Greg Kroah-Hartman
parent 631bee257b
commit d32394fae9
3 changed files with 24 additions and 100 deletions

View File

@@ -126,6 +126,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
sc = hw->priv;
sc->hw = hw;
sc->dev = &pdev->dev;
dev_set_drvdata(sc->dev, sc);
sc->mem = mem;
sc->irq = irq;