OpenCloudOS-Kernel/drivers/net/wireless/ath/ath6kl
Stephen Boyd 234e340582 simple_open: automatically convert to simple_open()
Many users of debugfs copy the implementation of default_open() when
they want to support a custom read/write function op.  This leads to a
proliferation of the default_open() implementation across the entire
tree.

Now that the common implementation has been consolidated into libfs we
can replace all the users of this function with simple_open().

This replacement was done with the following semantic patch:

<smpl>
@ open @
identifier open_f != simple_open;
identifier i, f;
@@
-int open_f(struct inode *i, struct file *f)
-{
(
-if (i->i_private)
-f->private_data = i->i_private;
|
-f->private_data = i->i_private;
)
-return 0;
-}

@ has_open depends on open @
identifier fops;
identifier open.open_f;
@@
struct file_operations fops = {
...
-.open = open_f,
+.open = simple_open,
...
};
</smpl>

[akpm@linux-foundation.org: checkpatch fixes]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-04-05 15:25:50 -07:00
..
Kconfig ath6kl: add back beginnings of USB support 2012-01-18 13:59:51 +02:00
Makefile ath6kl: Update license header 2012-02-08 11:31:31 +02:00
bmi.c ath6kl: alignment should match open parenthesis 2012-03-07 20:03:57 +02:00
bmi.h ath6kl: make ath6kl_bmi_[read|write]_hi32() endian safe 2012-03-07 20:04:00 +02:00
cfg80211.c ath6kl: use max_t() in ath6kl_cfg80211_connect() 2012-03-13 14:18:34 +02:00
cfg80211.h ath6kl: Update license header 2012-02-08 11:31:31 +02:00
common.h ath6kl: Update license header 2012-02-08 11:31:31 +02:00
core.c ath6kl: alignment should match open parenthesis 2012-03-07 20:03:57 +02:00
core.h ath6kl: document all spinlocks 2012-03-07 20:04:00 +02:00
debug.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
debug.h ath6kl: Fix kernel panic while receiving fwlog during boot 2012-03-06 17:53:54 +02:00
hif-ops.h ath6kl: Update license header 2012-02-08 11:31:31 +02:00
hif.c ath6kl: alignment should match open parenthesis 2012-03-07 20:03:57 +02:00
hif.h ath6kl: document all spinlocks 2012-03-07 20:04:00 +02:00
htc.c ath6kl: fix too long lines 2012-03-07 20:04:00 +02:00
htc.h ath6kl: document all spinlocks 2012-03-07 20:04:00 +02:00
init.c ath6kl: fix regression in ath6kl_upload_board_file() 2012-03-13 14:18:34 +02:00
main.c ath6kl: logical continuations should be on the previous line 2012-03-07 20:03:58 +02:00
sdio.c ath6kl: fix open parenthesis alignment in ath6kl_sdio_suspend() 2012-03-13 14:18:34 +02:00
target.h ath6kl: add support for AR6003 2048 byte board file 2012-02-08 11:39:52 +02:00
testmode.c ath6kl: Update license header 2012-02-08 11:31:31 +02:00
testmode.h ath6kl: Update license header 2012-02-08 11:31:31 +02:00
txrx.c ath6kl: alignment should match open parenthesis 2012-03-07 20:03:57 +02:00
usb.c ath6kl: Update license header 2012-02-08 11:31:31 +02:00
wmi.c Merge branch 'for-linville' of git://github.com/kvalo/ath6kl 2012-03-13 14:45:40 -04:00
wmi.h ath6kl: fix too long lines 2012-03-07 20:04:00 +02:00