* [PATCH] mwifiex: use debugfs_remove_recursive()
@ 2010-12-17 3:56 Bing Zhao
2010-12-17 14:26 ` John W. Linville
0 siblings, 1 reply; 3+ messages in thread
From: Bing Zhao @ 2010-12-17 3:56 UTC (permalink / raw)
To: linux-wireless
Cc: John W. Linville, Johannes Berg, Amitkumar Karwar, Kiran Divekar,
Frank Huang, Bing Zhao
From: Amitkumar Karwar <akarwar@marvell.com>
instead of keeping pointers to all entries.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kiran Divekar <dkiran@marvell.com>
---
drivers/net/wireless/mwifiex/debugfs.c | 36 +++----------------------------
drivers/net/wireless/mwifiex/main.h | 23 --------------------
2 files changed, 4 insertions(+), 55 deletions(-)
diff --git a/drivers/net/wireless/mwifiex/debugfs.c b/drivers/net/wireless/mwifiex/debugfs.c
index 4ea5cbc..9d23c68 100644
--- a/drivers/net/wireless/mwifiex/debugfs.c
+++ b/drivers/net/wireless/mwifiex/debugfs.c
@@ -2404,14 +2404,9 @@ exit:
}
#define MWIFIEX_DFS_ADD_FILE(name) do { \
- priv->dfs_##name = \
- debugfs_create_file(#name, 0644, priv->dfs_dev_dir, \
- priv, &mwifiex_dfs_##name##_fops); \
-} while (0);
-
-#define MWIFIEX_DFS_REM_FILE(name) do { \
- if (priv->dfs_##name) \
- debugfs_remove(priv->dfs_##name); \
+ if (!debugfs_create_file(#name, 0644, priv->dfs_dev_dir, \
+ priv, &mwifiex_dfs_##name##_fops)) \
+ goto exit; \
} while (0);
#define MWIFIEX_DFS_FILE_OPS(name) \
@@ -2524,30 +2519,7 @@ mwifiex_dev_debugfs_remove(struct mwifiex_private *priv)
if (!priv)
goto exit;
- MWIFIEX_DFS_REM_FILE(info);
- MWIFIEX_DFS_REM_FILE(debug);
- MWIFIEX_DFS_REM_FILE(deepsleep);
- MWIFIEX_DFS_REM_FILE(hscfg);
- MWIFIEX_DFS_REM_FILE(amsduaggrctrl);
- MWIFIEX_DFS_REM_FILE(txaggrprio);
- MWIFIEX_DFS_REM_FILE(sleeppd);
- MWIFIEX_DFS_REM_FILE(mpactrl);
- MWIFIEX_DFS_REM_FILE(qoscfg);
- MWIFIEX_DFS_REM_FILE(atimwindow);
- MWIFIEX_DFS_REM_FILE(txratecfg);
- MWIFIEX_DFS_REM_FILE(addbapara);
- MWIFIEX_DFS_REM_FILE(addbareject);
- MWIFIEX_DFS_REM_FILE(httxcfg);
- MWIFIEX_DFS_REM_FILE(htcapinfo);
- MWIFIEX_DFS_REM_FILE(getlog);
- MWIFIEX_DFS_REM_FILE(antcfg);
- MWIFIEX_DFS_REM_FILE(regrdwr);
- MWIFIEX_DFS_REM_FILE(rdeeprom);
- MWIFIEX_DFS_REM_FILE(drvdbg);
- MWIFIEX_DFS_REM_FILE(txbufcfg);
- MWIFIEX_DFS_REM_FILE(passphrase);
- MWIFIEX_DFS_REM_FILE(esuppmode);
- MWIFIEX_DFS_REM_FILE(dev_dir);
+ debugfs_remove_recursive(priv->dfs_dev_dir);
exit:
LEAVE();
}
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h
index 8bb8b45..646cc55 100644
--- a/drivers/net/wireless/mwifiex/main.h
+++ b/drivers/net/wireless/mwifiex/main.h
@@ -419,29 +419,6 @@ struct mwifiex_private {
char version_str[128];
#ifdef CONFIG_DEBUG_FS
struct dentry *dfs_dev_dir;
- struct dentry *dfs_info;
- struct dentry *dfs_debug;
- struct dentry *dfs_deepsleep;
- struct dentry *dfs_hscfg;
- struct dentry *dfs_amsduaggrctrl;
- struct dentry *dfs_txaggrprio;
- struct dentry *dfs_sleeppd;
- struct dentry *dfs_mpactrl;
- struct dentry *dfs_qoscfg;
- struct dentry *dfs_atimwindow;
- struct dentry *dfs_txratecfg;
- struct dentry *dfs_addbapara;
- struct dentry *dfs_addbareject;
- struct dentry *dfs_httxcfg;
- struct dentry *dfs_htcapinfo;
- struct dentry *dfs_getlog;
- struct dentry *dfs_antcfg;
- struct dentry *dfs_regrdwr;
- struct dentry *dfs_rdeeprom;
- struct dentry *dfs_drvdbg;
- struct dentry *dfs_txbufcfg;
- struct dentry *dfs_passphrase;
- struct dentry *dfs_esuppmode;
#endif
u8 nick_name[16];
bool is_adhoc_link_sensed;
--
1.7.0.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mwifiex: use debugfs_remove_recursive()
2010-12-17 3:56 [PATCH] mwifiex: use debugfs_remove_recursive() Bing Zhao
@ 2010-12-17 14:26 ` John W. Linville
2010-12-17 19:23 ` Bing Zhao
0 siblings, 1 reply; 3+ messages in thread
From: John W. Linville @ 2010-12-17 14:26 UTC (permalink / raw)
To: Bing Zhao
Cc: linux-wireless, Johannes Berg, Amitkumar Karwar, Kiran Divekar,
Frank Huang
On Thu, Dec 16, 2010 at 07:56:46PM -0800, Bing Zhao wrote:
> From: Amitkumar Karwar <akarwar@marvell.com>
>
> instead of keeping pointers to all entries.
>
> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
> Signed-off-by: Kiran Divekar <dkiran@marvell.com>
Just for the record, I'm not tracking any of the mwifiex patches at
this time. Are you pushing them to a public git tree?
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] mwifiex: use debugfs_remove_recursive()
2010-12-17 14:26 ` John W. Linville
@ 2010-12-17 19:23 ` Bing Zhao
0 siblings, 0 replies; 3+ messages in thread
From: Bing Zhao @ 2010-12-17 19:23 UTC (permalink / raw)
To: John W. Linville
Cc: linux-wireless@vger.kernel.org, Johannes Berg, Amitkumar Karwar,
Kiran Divekar, Frank Huang
Hi John,
> -----Original Message-----
> From: John W. Linville [mailto:linville@tuxdriver.com]
> Sent: Friday, December 17, 2010 6:27 AM
> To: Bing Zhao
> Cc: linux-wireless@vger.kernel.org; Johannes Berg; Amitkumar Karwar; Kiran Divekar; Frank Huang
> Subject: Re: [PATCH] mwifiex: use debugfs_remove_recursive()
>
> On Thu, Dec 16, 2010 at 07:56:46PM -0800, Bing Zhao wrote:
> > From: Amitkumar Karwar <akarwar@marvell.com>
> >
> > instead of keeping pointers to all entries.
> >
> > Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
> > Signed-off-by: Kiran Divekar <dkiran@marvell.com>
>
> Just for the record, I'm not tracking any of the mwifiex patches at
> this time. Are you pushing them to a public git tree?
I have pushed all mwifiex patches to Marvell public git tree:
git://git.marvell.com/mwifiex.git
http://git.marvell.com/?p=mwifiex.git;a=summary
I will let you know as soon as we finish all open items commented by you, Johannes and other reviewers.
Thanks,
Bing
>
> John
> --
> John W. Linville Someday the world will need a hero, and you
> linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-17 19:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-17 3:56 [PATCH] mwifiex: use debugfs_remove_recursive() Bing Zhao
2010-12-17 14:26 ` John W. Linville
2010-12-17 19:23 ` Bing Zhao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).