diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2012-02-03 11:31:59 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:56:12 -0500 |
commit | 89ef1ed2d241d3dfe884055d8446a5dd94919e54 (patch) | |
tree | 97eded56defec559df8d1164d0a622a36bfe0338 /drivers/net/wireless/iwlegacy/debug.c | |
parent | c39ae9fd505ae314a7a4a159a41e3e022cfa317f (diff) |
iwlegacy: merge il_base_params into il_cfg
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.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlegacy/debug.c b/drivers/net/wireless/iwlegacy/debug.c index 4fb769caef5a..bb7c95607a69 100644 --- a/drivers/net/wireless/iwlegacy/debug.c +++ b/drivers/net/wireless/iwlegacy/debug.c | |||
@@ -361,7 +361,7 @@ il_dbgfs_nvm_read(struct file *file, char __user *user_buf, size_t count, | |||
361 | const u8 *ptr; | 361 | const u8 *ptr; |
362 | char *buf; | 362 | char *buf; |
363 | u16 eeprom_ver; | 363 | u16 eeprom_ver; |
364 | size_t eeprom_len = il->cfg->base_params->eeprom_size; | 364 | size_t eeprom_len = il->cfg->eeprom_size; |
365 | buf_size = 4 * eeprom_len + 256; | 365 | buf_size = 4 * eeprom_len + 256; |
366 | 366 | ||
367 | if (eeprom_len % 16) { | 367 | if (eeprom_len % 16) { |
@@ -727,7 +727,7 @@ il_dbgfs_traffic_log_read(struct file *file, char __user *user_buf, | |||
727 | char *buf; | 727 | char *buf; |
728 | int bufsz = | 728 | int bufsz = |
729 | ((IL_TRAFFIC_ENTRIES * IL_TRAFFIC_ENTRY_SIZE * 64) * 2) + | 729 | ((IL_TRAFFIC_ENTRIES * IL_TRAFFIC_ENTRY_SIZE * 64) * 2) + |
730 | (il->cfg->base_params->num_of_queues * 32 * 8) + 400; | 730 | (il->cfg->num_of_queues * 32 * 8) + 400; |
731 | const u8 *ptr; | 731 | const u8 *ptr; |
732 | ssize_t ret; | 732 | ssize_t ret; |
733 | 733 | ||
@@ -833,7 +833,7 @@ il_dbgfs_tx_queue_read(struct file *file, char __user *user_buf, size_t count, | |||
833 | int cnt; | 833 | int cnt; |
834 | int ret; | 834 | int ret; |
835 | const size_t bufsz = | 835 | const size_t bufsz = |
836 | sizeof(char) * 64 * il->cfg->base_params->num_of_queues; | 836 | sizeof(char) * 64 * il->cfg->num_of_queues; |
837 | 837 | ||
838 | if (!il->txq) { | 838 | if (!il->txq) { |
839 | IL_ERR("txq not ready\n"); | 839 | IL_ERR("txq not ready\n"); |
@@ -1293,7 +1293,7 @@ il_dbgfs_wd_timeout_write(struct file *file, const char __user *user_buf, | |||
1293 | if (timeout < 0 || timeout > IL_MAX_WD_TIMEOUT) | 1293 | if (timeout < 0 || timeout > IL_MAX_WD_TIMEOUT) |
1294 | timeout = IL_DEF_WD_TIMEOUT; | 1294 | timeout = IL_DEF_WD_TIMEOUT; |
1295 | 1295 | ||
1296 | il->cfg->base_params->wd_timeout = timeout; | 1296 | il->cfg->wd_timeout = timeout; |
1297 | il_setup_watchdog(il); | 1297 | il_setup_watchdog(il); |
1298 | return count; | 1298 | return count; |
1299 | } | 1299 | } |
@@ -1367,17 +1367,17 @@ il_dbgfs_register(struct il_priv *il, const char *name) | |||
1367 | DEBUGFS_ADD_FILE(ucode_tx_stats, dir_debug, S_IRUSR); | 1367 | DEBUGFS_ADD_FILE(ucode_tx_stats, dir_debug, S_IRUSR); |
1368 | DEBUGFS_ADD_FILE(ucode_general_stats, dir_debug, S_IRUSR); | 1368 | DEBUGFS_ADD_FILE(ucode_general_stats, dir_debug, S_IRUSR); |
1369 | 1369 | ||
1370 | if (il->cfg->base_params->sensitivity_calib_by_driver) | 1370 | if (il->cfg->sensitivity_calib_by_driver) |
1371 | DEBUGFS_ADD_FILE(sensitivity, dir_debug, S_IRUSR); | 1371 | DEBUGFS_ADD_FILE(sensitivity, dir_debug, S_IRUSR); |
1372 | if (il->cfg->base_params->chain_noise_calib_by_driver) | 1372 | if (il->cfg->chain_noise_calib_by_driver) |
1373 | DEBUGFS_ADD_FILE(chain_noise, dir_debug, S_IRUSR); | 1373 | DEBUGFS_ADD_FILE(chain_noise, dir_debug, S_IRUSR); |
1374 | DEBUGFS_ADD_FILE(rxon_flags, dir_debug, S_IWUSR); | 1374 | DEBUGFS_ADD_FILE(rxon_flags, dir_debug, S_IWUSR); |
1375 | DEBUGFS_ADD_FILE(rxon_filter_flags, dir_debug, S_IWUSR); | 1375 | DEBUGFS_ADD_FILE(rxon_filter_flags, dir_debug, S_IWUSR); |
1376 | DEBUGFS_ADD_FILE(wd_timeout, dir_debug, S_IWUSR); | 1376 | DEBUGFS_ADD_FILE(wd_timeout, dir_debug, S_IWUSR); |
1377 | if (il->cfg->base_params->sensitivity_calib_by_driver) | 1377 | if (il->cfg->sensitivity_calib_by_driver) |
1378 | DEBUGFS_ADD_BOOL(disable_sensitivity, dir_rf, | 1378 | DEBUGFS_ADD_BOOL(disable_sensitivity, dir_rf, |
1379 | &il->disable_sens_cal); | 1379 | &il->disable_sens_cal); |
1380 | if (il->cfg->base_params->chain_noise_calib_by_driver) | 1380 | if (il->cfg->chain_noise_calib_by_driver) |
1381 | DEBUGFS_ADD_BOOL(disable_chain_noise, dir_rf, | 1381 | DEBUGFS_ADD_BOOL(disable_chain_noise, dir_rf, |
1382 | &il->disable_chain_noise_cal); | 1382 | &il->disable_chain_noise_cal); |
1383 | DEBUGFS_ADD_BOOL(disable_tx_power, dir_rf, &il->disable_tx_power_cal); | 1383 | DEBUGFS_ADD_BOOL(disable_tx_power, dir_rf, &il->disable_tx_power_cal); |