diff options
author | Winkler, Tomas <tomas.winkler@intel.com> | 2008-12-21 22:31:20 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:44 -0500 |
commit | 2ddfa129bbf3dca708ffb0eb29d08de32cacd547 (patch) | |
tree | fd67976edea02db4c130ef514036d8bac9f268be /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | 29701e5abf155d76fc8ab785a172c4ccf6cf47ee (diff) |
iwlwifi: move sysfs status entry to debugfs
This patch moves priv->status sysfs entry to debugfs. It is for
debugging only anyway.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 0dc8eed16404..01e744962d6c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -3652,16 +3652,6 @@ static ssize_t show_statistics(struct device *d, | |||
3652 | 3652 | ||
3653 | static DEVICE_ATTR(statistics, S_IRUGO, show_statistics, NULL); | 3653 | static DEVICE_ATTR(statistics, S_IRUGO, show_statistics, NULL); |
3654 | 3654 | ||
3655 | static ssize_t show_status(struct device *d, | ||
3656 | struct device_attribute *attr, char *buf) | ||
3657 | { | ||
3658 | struct iwl_priv *priv = (struct iwl_priv *)d->driver_data; | ||
3659 | if (!iwl_is_alive(priv)) | ||
3660 | return -EAGAIN; | ||
3661 | return sprintf(buf, "0x%08x\n", (int)priv->status); | ||
3662 | } | ||
3663 | |||
3664 | static DEVICE_ATTR(status, S_IRUGO, show_status, NULL); | ||
3665 | 3655 | ||
3666 | /***************************************************************************** | 3656 | /***************************************************************************** |
3667 | * | 3657 | * |
@@ -3717,7 +3707,6 @@ static struct attribute *iwl_sysfs_entries[] = { | |||
3717 | &dev_attr_power_level.attr, | 3707 | &dev_attr_power_level.attr, |
3718 | &dev_attr_retry_rate.attr, | 3708 | &dev_attr_retry_rate.attr, |
3719 | &dev_attr_statistics.attr, | 3709 | &dev_attr_statistics.attr, |
3720 | &dev_attr_status.attr, | ||
3721 | &dev_attr_temperature.attr, | 3710 | &dev_attr_temperature.attr, |
3722 | &dev_attr_tx_power.attr, | 3711 | &dev_attr_tx_power.attr, |
3723 | #ifdef CONFIG_IWLWIFI_DEBUG | 3712 | #ifdef CONFIG_IWLWIFI_DEBUG |