kernel-fxtec-pro1x/drivers/net/wireless/iwlwifi
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
..
iwl-1000.c iwlwifi: fix the delta for remove max_txq_num patch 2012-03-09 14:25:14 -05:00
iwl-2000.c iwlwifi: fix the delta for remove max_txq_num patch 2012-03-09 14:25:14 -05:00
iwl-5000.c iwlwifi: fix the delta for remove max_txq_num patch 2012-03-09 14:25:14 -05:00
iwl-6000.c iwlwifi: fix the delta for remove max_txq_num patch 2012-03-09 14:25:14 -05:00
iwl-agn-calib.c
iwl-agn-calib.h
iwl-agn-hw.h
iwl-agn-lib.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2012-03-16 13:45:25 -04:00
iwl-agn-rs.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
iwl-agn-rs.h
iwl-agn-rx.c net: add a truesize parameter to skb_add_rx_frag() 2012-03-25 13:29:58 -04:00
iwl-agn-rxon.c mac80211: rename bss_conf timestamp to last_tsf 2012-03-13 14:54:20 -04:00
iwl-agn-sta.c iwlwifi: don't delete AP station directly 2012-03-08 14:02:29 -05:00
iwl-agn-tt.c
iwl-agn-tt.h
iwl-agn-tx.c iwlwifi: fix the delta for remove max_txq_num patch 2012-03-09 14:25:14 -05:00
iwl-agn.c iwlwifi: avoid some operations if no uCode loaded 2012-03-12 14:22:02 -04:00
iwl-agn.h iwlwifi: don't delete AP station directly 2012-03-08 14:02:29 -05:00
iwl-cfg.h
iwl-commands.h
iwl-core.c iwlwifi: avoid some operations if no uCode loaded 2012-03-12 14:22:02 -04:00
iwl-core.h
iwl-csr.h
iwl-debug.c
iwl-debug.h
iwl-debugfs.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
iwl-dev.h iwlwifi: explicitly track whether INIT uCode was run 2012-03-12 14:22:04 -04:00
iwl-devtrace.c
iwl-devtrace.h
iwl-drv.c iwlwifi: Add bool mvm_ucode to iwl_fw 2012-03-12 14:22:10 -04:00
iwl-drv.h
iwl-eeprom.c
iwl-eeprom.h
iwl-fh.h
iwl-fw-file.h iwlwifi: Add TLVs and fields for 16.0 uCode 2012-03-12 14:22:08 -04:00
iwl-fw.h iwlwifi: Add bool mvm_ucode to iwl_fw 2012-03-12 14:22:10 -04:00
iwl-io.c
iwl-io.h
iwl-led.c
iwl-led.h
iwl-mac80211.c iwlwifi: change struct iwl_fw 2012-03-12 14:22:09 -04:00
iwl-notif-wait.c
iwl-notif-wait.h
iwl-op-mode.h
iwl-pci.c
iwl-power.c
iwl-power.h
iwl-prph.h iwlwifi: fix cmd_queue number merge 2012-03-09 13:20:50 -05:00
iwl-scan.c
iwl-shared.h iwlwifi: Add TLVs and fields for 16.0 uCode 2012-03-12 14:22:08 -04:00
iwl-testmode.c iwlwifi: change struct iwl_fw 2012-03-12 14:22:09 -04:00
iwl-testmode.h
iwl-trans-pcie-int.h iwlwifi: abstract out missing SEQ_RX_FRAME workaround 2012-03-12 14:21:56 -04:00
iwl-trans-pcie-rx.c iwlwifi: move wait_command_queue from shared to trans 2012-03-12 14:22:00 -04:00
iwl-trans-pcie-tx.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2012-03-16 13:45:25 -04:00
iwl-trans-pcie.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
iwl-trans.h iwlwifi: move wait_command_queue from shared to trans 2012-03-12 14:22:00 -04:00
iwl-ucode.c iwlwifi: change struct iwl_fw 2012-03-12 14:22:09 -04:00
Kconfig
Makefile