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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user