staging: wilc1000: wilc_wlan_cfg: Rearrange lines
PATCH 1/1 staging: wilc1000: wilc_wlan_cfg: Rearrange lines
Put parts of some lines in new lines to have less than 80 characters.
Fixed the checkpath.pl issue:
CHECK: line over 80 characters.
Signed-off-by Tamara Diaconita <[email protected]>
--- drivers/staging/wilc1000/wilc_wlan_cfg.c | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-)
drivers/staging/wilc1000/wilc_wlan_cfg.c +16 -7
@@ -217,7 +217,8 @@ static int wilc_wlan_cfg_set_word(u8 *frame, u32 offset, u16 id, u32 val32)return 7 ; } -static int wilc_wlan_cfg_set_str (u8 *frame,u32 offset,u16 id,u8 *str,u32 size) +static int wilc_wlan_cfg_set_str (u8 *frame,u32 offset,u16 id,u8 *str, +u32 size) {u8 *buf;
@@ -298,7 +299,8 @@ static void wilc_wlan_parse_response_frame(u8 *info, int size)break ;if (g_cfg_hword[i].id == wid) { - g_cfg_hword[i].val =cpu_to_le16 (info[3 ] | (info[4 ] <<8 )); + g_cfg_hword[i].val = +cpu_to_le16 (info[3 ] | (info[4 ] <<8 ));break ; } i++;
@@ -312,7 +314,10 @@ static void wilc_wlan_parse_response_frame(u8 *info, int size)break ;if (g_cfg_word[i].id == wid) { - g_cfg_word[i].val =cpu_to_le32 (info[3 ] | (info[4 ] <<8 ) | (info[5 ] <<16 ) | (info[6 ] <<24 )); + g_cfg_word[i].val =cpu_to_le32 (info[3 ] + | (info[4 ] <<8 ) + | (info[5 ] <<16 ) + | (info[6 ] <<24 ));break ; } i++;
@@ -332,7 +337,8 @@ static void wilc_wlan_parse_response_frame(u8 *info, int size) i += toggle; toggle ^=1 ; } -memcpy (g_cfg_str[i].str, &info[2 ], (info[2 ] +1 )); +memcpy (g_cfg_str[i].str, &info[2 ], + (info[2 ] +1 ));break ; } i++;
@@ -478,14 +484,16 @@ int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size)u32 size = g_cfg_str[i].str[0 ];if (buffer_size >= size) { -if (g_cfg_str[i].id ==WID_SITE_SURVEY_RESULTS ) { +if (g_cfg_str[i].id == +WID_SITE_SURVEY_RESULTS ){static int toggle; i += toggle; toggle ^=1 ; } -memcpy (buffer, &g_cfg_str[i].str[1 ], size); +memcpy (buffer, &g_cfg_str[i].str[1 ], + size); ret = size; }break ;
@@ -510,7 +518,8 @@ int wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size, size -=4 ;/** -* The valid types of response messages are 'R' (Response), 'I' (Information), and 'N' (Network Information) +* The valid types of response messages are 'R' (Response), +* 'I' (Information), and 'N' (Network Information) **/ switch (msg_type) {
Signature · 1 line
2.9.3