diff options
author | Greg Dietsche <Gregory.Dietsche@cuw.edu> | 2011-09-07 02:11:35 +0200 |
---|---|---|
committer | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-11-16 12:55:12 +0100 |
commit | 9b5e2f463ac6f53789bd5ce43d2bb4b4c01e8607 (patch) | |
tree | 0af5258b4c9464212bd582cef773c5e6f43233ce /drivers/net/wireless/iwlegacy/common.h | |
parent | iwlegacy: 4965-rs: cleanup il4965_rs_sta_dbgfs_rate_scale_data_read (diff) | |
download | linux-9b5e2f463ac6f53789bd5ce43d2bb4b4c01e8607.tar.xz linux-9b5e2f463ac6f53789bd5ce43d2bb4b4c01e8607.zip |
iwlegacy: debugfs_ops should depend on CONFIG_IWLEGACY_DEBUGFS
Only setup structs related to debugfs_ops when CONFIG_IWLEGACY_DEBUGFS is set.
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h index d0975ab8b908..1bc0b02f559c 100644 --- a/drivers/net/wireless/iwlegacy/common.h +++ b/drivers/net/wireless/iwlegacy/common.h @@ -1631,6 +1631,7 @@ struct il_apm_ops { void (*config) (struct il_priv *il); }; +#ifdef CONFIG_IWLEGACY_DEBUGFS struct il_debugfs_ops { ssize_t(*rx_stats_read) (struct file *file, char __user *user_buf, size_t count, loff_t *ppos); @@ -1640,6 +1641,7 @@ struct il_debugfs_ops { char __user *user_buf, size_t count, loff_t *ppos); }; +#endif struct il_temp_ops { void (*temperature) (struct il_priv *il); @@ -1683,7 +1685,9 @@ struct il_lib_ops { /* temperature */ struct il_temp_ops temp_ops; +#ifdef CONFIG_IWLEGACY_DEBUGFS struct il_debugfs_ops debugfs_ops; +#endif }; |