diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-11-15 08:51:01 -0500 |
---|---|---|
committer | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-11-15 08:51:01 -0500 |
commit | 1722f8e12a9c6117d872bd19ec5919460ccdfb4e (patch) | |
tree | 8f40a7240155e074c1a8f01927821c4a16eabe70 /drivers/net/wireless/iwlegacy/4965-rs.c | |
parent | e7392364fcd1004a5e495f15cf21b1e0ef874215 (diff) |
iwlegacy: checkpatch.pl fixes
Fix most checkpatch.pl ERRORs and some WARNINGs.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/4965-rs.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965-rs.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/net/wireless/iwlegacy/4965-rs.c b/drivers/net/wireless/iwlegacy/4965-rs.c index 3ea236157058..4bc5a1845821 100644 --- a/drivers/net/wireless/iwlegacy/4965-rs.c +++ b/drivers/net/wireless/iwlegacy/4965-rs.c | |||
@@ -96,18 +96,18 @@ static const u8 ant_toggle_lookup[] = { | |||
96 | */ | 96 | */ |
97 | const struct il_rate_info il_rates[RATE_COUNT] = { | 97 | const struct il_rate_info il_rates[RATE_COUNT] = { |
98 | IL_DECLARE_RATE_INFO(1, INV, INV, 2, INV, 2, INV, 2), /* 1mbps */ | 98 | IL_DECLARE_RATE_INFO(1, INV, INV, 2, INV, 2, INV, 2), /* 1mbps */ |
99 | IL_DECLARE_RATE_INFO(2, INV, 1, 5, 1, 5, 1, 5), /* 2mbps */ | 99 | IL_DECLARE_RATE_INFO(2, INV, 1, 5, 1, 5, 1, 5), /* 2mbps */ |
100 | IL_DECLARE_RATE_INFO(5, INV, 2, 6, 2, 11, 2, 11), /*5.5mbps */ | 100 | IL_DECLARE_RATE_INFO(5, INV, 2, 6, 2, 11, 2, 11), /*5.5mbps */ |
101 | IL_DECLARE_RATE_INFO(11, INV, 9, 12, 9, 12, 5, 18), /* 11mbps */ | 101 | IL_DECLARE_RATE_INFO(11, INV, 9, 12, 9, 12, 5, 18), /* 11mbps */ |
102 | IL_DECLARE_RATE_INFO(6, 6, 5, 9, 5, 11, 5, 11), /* 6mbps */ | 102 | IL_DECLARE_RATE_INFO(6, 6, 5, 9, 5, 11, 5, 11), /* 6mbps */ |
103 | IL_DECLARE_RATE_INFO(9, 6, 6, 11, 6, 11, 5, 11), /* 9mbps */ | 103 | IL_DECLARE_RATE_INFO(9, 6, 6, 11, 6, 11, 5, 11), /* 9mbps */ |
104 | IL_DECLARE_RATE_INFO(12, 12, 11, 18, 11, 18, 11, 18), /* 12mbps */ | 104 | IL_DECLARE_RATE_INFO(12, 12, 11, 18, 11, 18, 11, 18), /* 12mbps */ |
105 | IL_DECLARE_RATE_INFO(18, 18, 12, 24, 12, 24, 11, 24), /* 18mbps */ | 105 | IL_DECLARE_RATE_INFO(18, 18, 12, 24, 12, 24, 11, 24), /* 18mbps */ |
106 | IL_DECLARE_RATE_INFO(24, 24, 18, 36, 18, 36, 18, 36), /* 24mbps */ | 106 | IL_DECLARE_RATE_INFO(24, 24, 18, 36, 18, 36, 18, 36), /* 24mbps */ |
107 | IL_DECLARE_RATE_INFO(36, 36, 24, 48, 24, 48, 24, 48), /* 36mbps */ | 107 | IL_DECLARE_RATE_INFO(36, 36, 24, 48, 24, 48, 24, 48), /* 36mbps */ |
108 | IL_DECLARE_RATE_INFO(48, 48, 36, 54, 36, 54, 36, 54), /* 48mbps */ | 108 | IL_DECLARE_RATE_INFO(48, 48, 36, 54, 36, 54, 36, 54), /* 48mbps */ |
109 | IL_DECLARE_RATE_INFO(54, 54, 48, INV, 48, INV, 48, INV), /* 54mbps */ | 109 | IL_DECLARE_RATE_INFO(54, 54, 48, INV, 48, INV, 48, INV),/* 54mbps */ |
110 | IL_DECLARE_RATE_INFO(60, 60, 48, INV, 48, INV, 48, INV), /* 60mbps */ | 110 | IL_DECLARE_RATE_INFO(60, 60, 48, INV, 48, INV, 48, INV),/* 60mbps */ |
111 | }; | 111 | }; |
112 | 112 | ||
113 | static int | 113 | static int |
@@ -150,7 +150,7 @@ static void il4965_rs_stay_in_table(struct il_lq_sta *lq_sta, | |||
150 | 150 | ||
151 | #ifdef CONFIG_MAC80211_DEBUGFS | 151 | #ifdef CONFIG_MAC80211_DEBUGFS |
152 | static void il4965_rs_dbgfs_set_mcs(struct il_lq_sta *lq_sta, | 152 | static void il4965_rs_dbgfs_set_mcs(struct il_lq_sta *lq_sta, |
153 | u32 * rate_n_flags, int idx); | 153 | u32 *rate_n_flags, int idx); |
154 | #else | 154 | #else |
155 | static void | 155 | static void |
156 | il4965_rs_dbgfs_set_mcs(struct il_lq_sta *lq_sta, u32 * rate_n_flags, int idx) | 156 | il4965_rs_dbgfs_set_mcs(struct il_lq_sta *lq_sta, u32 * rate_n_flags, int idx) |
@@ -610,7 +610,7 @@ il4965_rs_get_tbl_info_from_mcs(const u32 rate_n_flags, | |||
610 | /* switch to another antenna/antennas and return 1 */ | 610 | /* switch to another antenna/antennas and return 1 */ |
611 | /* if no other valid antenna found, return 0 */ | 611 | /* if no other valid antenna found, return 0 */ |
612 | static int | 612 | static int |
613 | il4965_rs_toggle_antenna(u32 valid_ant, u32 * rate_n_flags, | 613 | il4965_rs_toggle_antenna(u32 valid_ant, u32 *rate_n_flags, |
614 | struct il_scale_tbl_info *tbl) | 614 | struct il_scale_tbl_info *tbl) |
615 | { | 615 | { |
616 | u8 new_ant_type; | 616 | u8 new_ant_type; |
@@ -1082,7 +1082,8 @@ il4965_rs_set_expected_tpt_table(struct il_lq_sta *lq_sta, | |||
1082 | * bit rate will typically need to increase, but not if performance was bad. | 1082 | * bit rate will typically need to increase, but not if performance was bad. |
1083 | */ | 1083 | */ |
1084 | static s32 | 1084 | static s32 |
1085 | il4965_rs_get_best_rate(struct il_priv *il, struct il_lq_sta *lq_sta, struct il_scale_tbl_info *tbl, /* "search" */ | 1085 | il4965_rs_get_best_rate(struct il_priv *il, struct il_lq_sta *lq_sta, |
1086 | struct il_scale_tbl_info *tbl, /* "search" */ | ||
1086 | u16 rate_mask, s8 idx) | 1087 | u16 rate_mask, s8 idx) |
1087 | { | 1088 | { |
1088 | /* "active" values */ | 1089 | /* "active" values */ |
@@ -2012,11 +2013,10 @@ il4965_rs_rate_scale_perform(struct il_priv *il, struct sk_buff *skb, | |||
2012 | /* Higher adjacent rate's throughput is measured */ | 2013 | /* Higher adjacent rate's throughput is measured */ |
2013 | if (high_tpt != IL_INVALID_VALUE) { | 2014 | if (high_tpt != IL_INVALID_VALUE) { |
2014 | /* Higher rate has better throughput */ | 2015 | /* Higher rate has better throughput */ |
2015 | if (high_tpt > current_tpt && sr >= RATE_INCREASE_TH) { | 2016 | if (high_tpt > current_tpt && sr >= RATE_INCREASE_TH) |
2016 | scale_action = 1; | 2017 | scale_action = 1; |
2017 | } else { | 2018 | else |
2018 | scale_action = 0; | 2019 | scale_action = 0; |
2019 | } | ||
2020 | 2020 | ||
2021 | /* Lower adjacent rate's throughput is measured */ | 2021 | /* Lower adjacent rate's throughput is measured */ |
2022 | } else if (low_tpt != IL_INVALID_VALUE) { | 2022 | } else if (low_tpt != IL_INVALID_VALUE) { |
@@ -2583,8 +2583,8 @@ il4965_rs_dbgfs_set_mcs(struct il_lq_sta *lq_sta, u32 * rate_n_flags, int idx) | |||
2583 | 2583 | ||
2584 | static ssize_t | 2584 | static ssize_t |
2585 | il4965_rs_sta_dbgfs_scale_table_write(struct file *file, | 2585 | il4965_rs_sta_dbgfs_scale_table_write(struct file *file, |
2586 | const char __user * user_buf, | 2586 | const char __user *user_buf, |
2587 | size_t count, loff_t * ppos) | 2587 | size_t count, loff_t *ppos) |
2588 | { | 2588 | { |
2589 | struct il_lq_sta *lq_sta = file->private_data; | 2589 | struct il_lq_sta *lq_sta = file->private_data; |
2590 | struct il_priv *il; | 2590 | struct il_priv *il; |
@@ -2622,8 +2622,8 @@ il4965_rs_sta_dbgfs_scale_table_write(struct file *file, | |||
2622 | } | 2622 | } |
2623 | 2623 | ||
2624 | static ssize_t | 2624 | static ssize_t |
2625 | il4965_rs_sta_dbgfs_scale_table_read(struct file *file, char __user * user_buf, | 2625 | il4965_rs_sta_dbgfs_scale_table_read(struct file *file, char __user *user_buf, |
2626 | size_t count, loff_t * ppos) | 2626 | size_t count, loff_t *ppos) |
2627 | { | 2627 | { |
2628 | char *buff; | 2628 | char *buff; |
2629 | int desc = 0; | 2629 | int desc = 0; |
@@ -2730,8 +2730,8 @@ static const struct file_operations rs_sta_dbgfs_scale_table_ops = { | |||
2730 | }; | 2730 | }; |
2731 | 2731 | ||
2732 | static ssize_t | 2732 | static ssize_t |
2733 | il4965_rs_sta_dbgfs_stats_table_read(struct file *file, char __user * user_buf, | 2733 | il4965_rs_sta_dbgfs_stats_table_read(struct file *file, char __user *user_buf, |
2734 | size_t count, loff_t * ppos) | 2734 | size_t count, loff_t *ppos) |
2735 | { | 2735 | { |
2736 | char *buff; | 2736 | char *buff; |
2737 | int desc = 0; | 2737 | int desc = 0; |
@@ -2776,8 +2776,8 @@ static const struct file_operations rs_sta_dbgfs_stats_table_ops = { | |||
2776 | 2776 | ||
2777 | static ssize_t | 2777 | static ssize_t |
2778 | il4965_rs_sta_dbgfs_rate_scale_data_read(struct file *file, | 2778 | il4965_rs_sta_dbgfs_rate_scale_data_read(struct file *file, |
2779 | char __user * user_buf, size_t count, | 2779 | char __user *user_buf, size_t count, |
2780 | loff_t * ppos) | 2780 | loff_t *ppos) |
2781 | { | 2781 | { |
2782 | char buff[120]; | 2782 | char buff[120]; |
2783 | int desc = 0; | 2783 | int desc = 0; |