linux/drivers/net/wireless/ath/ath5k
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
..
ahb.c ath5k:Remove __raw_read and __raw_write 2012-02-22 14:51:19 -05:00
ani.c drivers/net: Remove boolean comparisons to true/false 2012-02-13 00:47:40 -05:00
ani.h ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
ath5k.h ath5k: allow AP and mesh mode to operate simultaneously 2012-03-06 15:16:05 -05:00
attach.c ath5k: MRR support and 2GHz radio override belong in ah_capabilities 2011-11-28 14:44:19 -05:00
base.c ath5k: do not stop queues for full calibration 2012-03-06 15:16:17 -05:00
base.h ath5k: remove last references to "softc" 2011-08-08 16:04:14 -04:00
caps.c ath5k: MRR support and 2GHz radio override belong in ah_capabilities 2011-11-28 14:44:19 -05:00
debug.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
debug.h treewide: use __printf not __attribute__((format(printf,...))) 2011-10-31 17:30:54 -07:00
desc.c ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
desc.h ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
dma.c ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
eeprom.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
eeprom.h
gpio.c ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
initvals.c ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
Kconfig
led.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
mac80211-ops.c ath5k: allow AP and mesh mode to operate simultaneously 2012-03-06 15:16:05 -05:00
Makefile
pci.c ath5k: Use usleep_range where possible 2011-11-28 14:44:15 -05:00
pcu.c ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
phy.c ath5k: do not re-run AGC calibration periodically 2012-03-06 15:16:18 -05:00
qcu.c ath5k: Optimize ath5k_cw_validate 2011-11-28 14:44:23 -05:00
reg.h ath5k: Switch from read-and-clear to write-to-clear method when handling PISR/SISR registers 2011-11-28 14:44:10 -05:00
reset.c ath5k:Remove __raw_read and __raw_write 2012-02-22 14:51:19 -05:00
rfbuffer.h ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
rfgain.h ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
rfkill.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
sysfs.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
trace.h ath5k: avoid sparse warnings on tracing 2012-01-04 14:30:40 -05:00