aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/common.h
diff options
context:
space:
mode:
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>2011-09-06 20:11:35 -0400
committerStanislaw Gruszka <sgruszka@redhat.com>2011-11-16 06:55:12 -0500
commit9b5e2f463ac6f53789bd5ce43d2bb4b4c01e8607 (patch)
tree0af5258b4c9464212bd582cef773c5e6f43233ce /drivers/net/wireless/iwlegacy/common.h
parente3a2c775336641663b1c38dfa7dd8a1c1210ae23 (diff)
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 'drivers/net/wireless/iwlegacy/common.h')
-rw-r--r--drivers/net/wireless/iwlegacy/common.h4
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 {
1631 void (*config) (struct il_priv *il); 1631 void (*config) (struct il_priv *il);
1632}; 1632};
1633 1633
1634#ifdef CONFIG_IWLEGACY_DEBUGFS
1634struct il_debugfs_ops { 1635struct il_debugfs_ops {
1635 ssize_t(*rx_stats_read) (struct file *file, char __user *user_buf, 1636 ssize_t(*rx_stats_read) (struct file *file, char __user *user_buf,
1636 size_t count, loff_t *ppos); 1637 size_t count, loff_t *ppos);
@@ -1640,6 +1641,7 @@ struct il_debugfs_ops {
1640 char __user *user_buf, size_t count, 1641 char __user *user_buf, size_t count,
1641 loff_t *ppos); 1642 loff_t *ppos);
1642}; 1643};
1644#endif
1643 1645
1644struct il_temp_ops { 1646struct il_temp_ops {
1645 void (*temperature) (struct il_priv *il); 1647 void (*temperature) (struct il_priv *il);
@@ -1683,7 +1685,9 @@ struct il_lib_ops {
1683 /* temperature */ 1685 /* temperature */
1684 struct il_temp_ops temp_ops; 1686 struct il_temp_ops temp_ops;
1685 1687
1688#ifdef CONFIG_IWLEGACY_DEBUGFS
1686 struct il_debugfs_ops debugfs_ops; 1689 struct il_debugfs_ops debugfs_ops;
1690#endif
1687 1691
1688}; 1692};
1689 1693