diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/libertas/debugfs.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index 51dfd202f558..61cbd47109e4 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c | |||
@@ -7,6 +7,7 @@ | |||
7 | #include "dev.h" | 7 | #include "dev.h" |
8 | #include "decl.h" | 8 | #include "decl.h" |
9 | #include "host.h" | 9 | #include "host.h" |
10 | #include "debugfs.h" | ||
10 | 11 | ||
11 | static struct dentry *libertas_dir = NULL; | 12 | static struct dentry *libertas_dir = NULL; |
12 | static char *szStates[] = { | 13 | static char *szStates[] = { |
@@ -1648,7 +1649,7 @@ struct libertas_debugfs_files { | |||
1648 | struct file_operations fops; | 1649 | struct file_operations fops; |
1649 | }; | 1650 | }; |
1650 | 1651 | ||
1651 | struct libertas_debugfs_files debugfs_files[] = { | 1652 | static struct libertas_debugfs_files debugfs_files[] = { |
1652 | { "info", 0444, FOPS(libertas_dev_info, write_file_dummy), }, | 1653 | { "info", 0444, FOPS(libertas_dev_info, write_file_dummy), }, |
1653 | { "getscantable", 0444, FOPS(libertas_getscantable, | 1654 | { "getscantable", 0444, FOPS(libertas_getscantable, |
1654 | write_file_dummy), }, | 1655 | write_file_dummy), }, |
@@ -1658,7 +1659,7 @@ struct libertas_debugfs_files debugfs_files[] = { | |||
1658 | { "setuserscan", 0600, FOPS(NULL, libertas_setuserscan), }, | 1659 | { "setuserscan", 0600, FOPS(NULL, libertas_setuserscan), }, |
1659 | }; | 1660 | }; |
1660 | 1661 | ||
1661 | struct libertas_debugfs_files debugfs_events_files[] = { | 1662 | static struct libertas_debugfs_files debugfs_events_files[] = { |
1662 | {"low_rssi", 0644, FOPS(libertas_lowrssi_read, | 1663 | {"low_rssi", 0644, FOPS(libertas_lowrssi_read, |
1663 | libertas_lowrssi_write), }, | 1664 | libertas_lowrssi_write), }, |
1664 | {"low_snr", 0644, FOPS(libertas_lowsnr_read, | 1665 | {"low_snr", 0644, FOPS(libertas_lowsnr_read, |
@@ -1673,7 +1674,7 @@ struct libertas_debugfs_files debugfs_events_files[] = { | |||
1673 | libertas_highsnr_write), }, | 1674 | libertas_highsnr_write), }, |
1674 | }; | 1675 | }; |
1675 | 1676 | ||
1676 | struct libertas_debugfs_files debugfs_regs_files[] = { | 1677 | static struct libertas_debugfs_files debugfs_regs_files[] = { |
1677 | {"rdmac", 0644, FOPS(libertas_rdmac_read, libertas_rdmac_write), }, | 1678 | {"rdmac", 0644, FOPS(libertas_rdmac_read, libertas_rdmac_write), }, |
1678 | {"wrmac", 0600, FOPS(NULL, libertas_wrmac_write), }, | 1679 | {"wrmac", 0600, FOPS(NULL, libertas_wrmac_write), }, |
1679 | {"rdbbp", 0644, FOPS(libertas_rdbbp_read, libertas_rdbbp_write), }, | 1680 | {"rdbbp", 0644, FOPS(libertas_rdbbp_read, libertas_rdbbp_write), }, |
@@ -1923,13 +1924,3 @@ void libertas_debug_init(wlan_private * priv, struct net_device *dev) | |||
1923 | &libertas_debug_fops); | 1924 | &libertas_debug_fops); |
1924 | } | 1925 | } |
1925 | 1926 | ||
1926 | /** | ||
1927 | * @brief remove proc file | ||
1928 | * | ||
1929 | * @param priv pointer wlan_private | ||
1930 | * @return N/A | ||
1931 | */ | ||
1932 | void libertas_debug_remove(wlan_private * priv) | ||
1933 | { | ||
1934 | debugfs_remove(priv->debugfs_debug); | ||
1935 | } | ||