aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/debug.c
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2012-02-03 11:31:58 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-02-06 14:56:11 -0500
commitc39ae9fd505ae314a7a4a159a41e3e022cfa317f (patch)
tree246d8cffde50f436bd598292d01a268fc7392431 /drivers/net/wireless/iwlegacy/debug.c
parent83007196037cc2d0bffd9f7afbe56d675779a6cb (diff)
iwlegacy: move ops out of config
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/debug.c')
-rw-r--r--drivers/net/wireless/iwlegacy/debug.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlegacy/debug.c b/drivers/net/wireless/iwlegacy/debug.c
index 3a9609a88748..4fb769caef5a 100644
--- a/drivers/net/wireless/iwlegacy/debug.c
+++ b/drivers/net/wireless/iwlegacy/debug.c
@@ -901,8 +901,7 @@ il_dbgfs_ucode_rx_stats_read(struct file *file, char __user *user_buf,
901 size_t count, loff_t *ppos) 901 size_t count, loff_t *ppos)
902{ 902{
903 struct il_priv *il = file->private_data; 903 struct il_priv *il = file->private_data;
904 return il->cfg->ops->lib->debugfs_ops.rx_stats_read(file, user_buf, 904 return il->ops->lib->debugfs_ops.rx_stats_read(file, user_buf, count, ppos);
905 count, ppos);
906} 905}
907 906
908static ssize_t 907static ssize_t
@@ -910,8 +909,7 @@ il_dbgfs_ucode_tx_stats_read(struct file *file, char __user *user_buf,
910 size_t count, loff_t *ppos) 909 size_t count, loff_t *ppos)
911{ 910{
912 struct il_priv *il = file->private_data; 911 struct il_priv *il = file->private_data;
913 return il->cfg->ops->lib->debugfs_ops.tx_stats_read(file, user_buf, 912 return il->ops->lib->debugfs_ops.tx_stats_read(file, user_buf, count, ppos);
914 count, ppos);
915} 913}
916 914
917static ssize_t 915static ssize_t
@@ -919,8 +917,7 @@ il_dbgfs_ucode_general_stats_read(struct file *file, char __user *user_buf,
919 size_t count, loff_t *ppos) 917 size_t count, loff_t *ppos)
920{ 918{
921 struct il_priv *il = file->private_data; 919 struct il_priv *il = file->private_data;
922 return il->cfg->ops->lib->debugfs_ops.general_stats_read(file, user_buf, 920 return il->ops->lib->debugfs_ops.general_stats_read(file, user_buf, count, ppos);
923 count, ppos);
924} 921}
925 922
926static ssize_t 923static ssize_t
@@ -1178,8 +1175,8 @@ il_dbgfs_fh_reg_read(struct file *file, char __user *user_buf, size_t count,
1178 int pos = 0; 1175 int pos = 0;
1179 ssize_t ret = -EFAULT; 1176 ssize_t ret = -EFAULT;
1180 1177
1181 if (il->cfg->ops->lib->dump_fh) { 1178 if (il->ops->lib->dump_fh) {
1182 ret = pos = il->cfg->ops->lib->dump_fh(il, &buf, true); 1179 ret = pos = il->ops->lib->dump_fh(il, &buf, true);
1183 if (buf) { 1180 if (buf) {
1184 ret = 1181 ret =
1185 simple_read_from_buffer(user_buf, count, ppos, buf, 1182 simple_read_from_buffer(user_buf, count, ppos, buf,