summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wl18xx/debugfs.c
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2012-05-10 12:14:19 +0300
committerLuciano Coelho <coelho@ti.com>2012-06-05 15:58:59 +0300
commitad62d81a9e5262555de0501329bd635f5886124f (patch)
treebe56929dacc0a99dc45eb9603aa0312da22872cd /drivers/net/wireless/ti/wl18xx/debugfs.c
parent7b03c306da4a5ae415036a16b1a5844ca42e2778 (diff)
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.c10
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 8354dfc64bd..f4127bfb964 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;