diff options
author | Luciano Coelho <coelho@ti.com> | 2012-05-10 11:14:19 +0200 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-06-05 14:58:59 +0200 |
commit | ad62d81a9e5262555de0501329bd635f5886124f (patch) | |
tree | be56929dacc0a99dc45eb9603aa0312da22872cd /drivers/net/wireless/ti/wl18xx/debugfs.c | |
parent | wl18xx: export pwr_limit_reference_11_abg value as a module parameter (diff) | |
download | linux-ad62d81a9e5262555de0501329bd635f5886124f.tar.xz linux-ad62d81a9e5262555de0501329bd635f5886124f.zip |
wlcore/wl12xx/wl18xx: move lower driver debugfs to a subdir
Instead of adding more files from the lower drivers into the same
directory in debugfs as wlcore, we now add a subdirectory for the
lower driver. This makes things a bit easier, because we can quickly
see where the debugfs entry is implemented and what is specific to the
lower driver.
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx/debugfs.c')
-rw-r--r-- | drivers/net/wireless/ti/wl18xx/debugfs.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/debugfs.c b/drivers/net/wireless/ti/wl18xx/debugfs.c index 8354dfc64bd8..f4127bfb9642 100644 --- a/drivers/net/wireless/ti/wl18xx/debugfs.c +++ b/drivers/net/wireless/ti/wl18xx/debugfs.c @@ -181,9 +181,15 @@ int wl18xx_debugfs_add_files(struct wl1271 *wl, struct dentry *rootdir) { int ret = 0; - struct dentry *entry, *stats; + struct dentry *entry, *stats, *moddir; - stats = debugfs_create_dir("wl18xx_fw_stats", rootdir); + moddir = debugfs_create_dir(KBUILD_MODNAME, rootdir); + if (!moddir || IS_ERR(moddir)) { + entry = moddir; + goto err; + } + + stats = debugfs_create_dir("fw_stats", moddir); if (!stats || IS_ERR(stats)) { entry = stats; goto err; |