Skip to content

Commit

Permalink
wl12xx: change debug_level module param sysfs permissions
Browse files Browse the repository at this point in the history
changed the visibility of the debug_level module parameter
in the filesystem to be readable and writable to the root user.
It is now accessible under /sys/module/wl12xx/parameters

removed the debug_level debugfs file that was created under
/sys/kernel/debug/...

Signed-off-by: Guy Eilam <guy@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information
Guy Eilam authored and Luciano Coelho committed Jan 24, 2011
1 parent 2d6e4e7 commit 491bbd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions drivers/net/wireless/wl12xx/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,6 @@ static int wl1271_debugfs_add_files(struct wl1271 *wl,

DEBUGFS_ADD(gpio_power, rootdir);

entry = debugfs_create_x32("debug_level", 0600, rootdir,
&wl12xx_debug_level);
if (!entry || IS_ERR(entry))
goto err;

return 0;

err:
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3334,9 +3334,9 @@ int wl1271_free_hw(struct wl1271 *wl)
}
EXPORT_SYMBOL_GPL(wl1271_free_hw);

u32 wl12xx_debug_level;
u32 wl12xx_debug_level = DEBUG_NONE;
EXPORT_SYMBOL_GPL(wl12xx_debug_level);
module_param_named(debug_level, wl12xx_debug_level, uint, DEBUG_NONE);
module_param_named(debug_level, wl12xx_debug_level, uint, S_IRUSR | S_IWUSR);
MODULE_PARM_DESC(debug_level, "wl12xx debugging level");

MODULE_LICENSE("GPL");
Expand Down

0 comments on commit 491bbd6

Please sign in to comment.