linux_dsm_epyc7002/drivers/net/wireless/wl12xx
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
..
acx.c wl12xx: Set different wake up conditions in case of suspend 2012-02-15 08:38:33 +02:00
acx.h wl12xx: Set different wake up conditions in case of suspend 2012-02-15 08:38:33 +02:00
boot.c wl12xx: remove PS management code 2012-02-15 08:38:31 +02:00
boot.h wl12xx: use two MAC addresses based on the NVS or from fuse ROM 2012-02-15 08:38:29 +02:00
cmd.c wl12xx: implement SW Tx watchdog 2012-03-08 14:25:18 +02:00
cmd.h wl12xx: consider encryption and QoS in auto arp template 2012-02-15 08:38:34 +02:00
conf.h wl12xx: implement SW Tx watchdog 2012-03-08 14:25:18 +02:00
debug.h wl12xx: read chip ID and HW PG version during probe 2012-02-15 08:38:29 +02:00
debugfs.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
debugfs.h wl1271: Change wl12xx Files Names 2010-11-22 16:45:09 +02:00
event.c wl12xx: add support for HW dynamic PS 2012-02-15 08:38:31 +02:00
event.h wl12xx: remove PS management code 2012-02-15 08:38:31 +02:00
ini.h wl12xx: Add Support for Low Power DRPw (LPD) Mode 2011-06-27 12:50:33 +03:00
init.c wl12xx: increase max probe-req template size to WL1271_CMD_TEMPL_MAX_SIZE 2012-02-15 08:38:35 +02:00
init.h wl12xx: remove deprecated packet detection threshold config 2011-12-15 09:58:42 +02:00
io.c wl12xx: move partition table definition to io.c 2012-02-15 08:38:28 +02:00
io.h wl12xx: move partition table definition to io.c 2012-02-15 08:38:28 +02:00
Kconfig wl12xx: remove sdio_test module 2011-10-11 16:00:38 +03:00
main.c wl12xx: implement SW Tx watchdog 2012-03-08 14:25:18 +02:00
Makefile wl12xx: enable sparse endianess check by default 2012-02-15 08:38:27 +02:00
ps.c wl12xx: set the ELP entry delay to the FW dyn-ps timeout 2012-02-28 13:19:19 +02:00
ps.h wl12xx: remove 2 unused parameters in wl1271_ps_set_mode() 2012-02-15 08:38:32 +02:00
reg.h wl12xx: use two MAC addresses based on the NVS or from fuse ROM 2012-02-15 08:38:29 +02:00
rx.c wl12xx: Use a dedicated fw for PLT 2012-02-15 08:38:35 +02:00
rx.h wl12xx: update rx/tx 2011-08-22 12:35:25 +03:00
scan.c wl12xx: implement SW Tx watchdog 2012-03-08 14:25:18 +02:00
scan.h wl12xx: use split scan for normal scan 2012-02-15 08:38:35 +02:00
sdio.c wl12xx: dynamically change fw according to number of active roles 2012-02-15 08:38:36 +02:00
spi.c wl12xx: dynamically change fw according to number of active roles 2012-02-15 08:38:36 +02:00
testmode.c wl12xx: Use a dedicated fw for PLT 2012-02-15 08:38:35 +02:00
testmode.h wl1271: Change wl12xx Files Names 2010-11-22 16:45:09 +02:00
tx.c wl12xx: implement SW Tx watchdog 2012-03-08 14:25:18 +02:00
tx.h wl12xx: implement SW Tx watchdog 2012-03-08 14:25:18 +02:00
wl12xx_80211.h wl12xx: consider encryption and QoS in auto arp template 2012-02-15 08:38:34 +02:00
wl12xx_platform_data.c wl12xx: add missing copyright notice 2011-12-20 22:30:15 +02:00
wl12xx.h wl12xx: implement SW Tx watchdog 2012-03-08 14:25:18 +02:00