linux/drivers/net/wireless/ath/carl9170
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
..
carl9170.h carl9170: allow users to lower output power level 2012-01-27 14:56:57 -05:00
cmd.c carl9170: Use do_div for 64-bit division to fix 32-bit kernels 2011-08-26 10:47:58 -04:00
cmd.h carl9170: improve site survey 2011-08-24 14:41:42 -04:00
debug.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
debug.h
eeprom.h
fw.c carl9170: remove eeprom data injection option 2012-01-24 14:21:12 -05:00
fwcmd.h carl9170: import updated firmware headers 2011-08-24 14:41:42 -04:00
fwdesc.h carl9170 firmware: update firmware headers 2011-07-18 14:29:43 -04:00
hw.h carl9170 firmware: update firmware headers 2011-07-18 14:29:43 -04:00
Kconfig carl9170: export HW random number generator 2011-08-24 14:41:42 -04:00
led.c carl9170: fix formatting issues found by checkpatch 2011-07-15 13:38:34 -04:00
mac.c carl9170: allow users to lower output power level 2012-01-27 14:56:57 -05:00
main.c carl9170: allow users to lower output power level 2012-01-27 14:56:57 -05:00
Makefile
phy.c carl9170: allow users to lower output power level 2012-01-27 14:56:57 -05:00
phy.h
rx.c wireless: unify QoS control field definitions 2011-06-27 15:09:39 -04:00
tx.c carl9170: fix breakage from "mac80211: handle non-bufferable MMPDUs correctly" 2012-02-29 15:08:33 -05:00
usb.c USB: convert drivers/net/* to use module_usb_driver() 2011-11-18 09:44:20 -08:00
version.h carl9170: import updated firmware headers 2011-08-24 14:41:42 -04:00
wlan.h carl9170: import 1.9.4 firmware headers 2011-07-05 15:26:51 -04:00