staging: wilc1000: rename pstrNetworkInfo in get_rssi_avg function
authorLeo Kim <leo.kim@atmel.com>
Thu, 19 Nov 2015 06:56:35 +0000 (15:56 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Dec 2015 22:34:41 +0000 (14:34 -0800)
This patch renames pstrNetworkInfo to network_info that is
first argument of get_rssi_avg function to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index a429167a9bf59210c374e2c38cb5b8362514414c..bcfddbfe7e9b856b71534e1211301d3f6eec4ba9 100644 (file)
@@ -224,14 +224,14 @@ static void clear_shadow_scan(void)
 
 }
 
-static u32 get_rssi_avg(tstrNetworkInfo *pstrNetworkInfo)
+static u32 get_rssi_avg(tstrNetworkInfo *network_info)
 {
        u8 i;
        int rssi_v = 0;
-       u8 num_rssi = (pstrNetworkInfo->strRssi.u8Full) ? NUM_RSSI : (pstrNetworkInfo->strRssi.u8Index);
+       u8 num_rssi = (network_info->strRssi.u8Full) ? NUM_RSSI : (network_info->strRssi.u8Index);
 
        for (i = 0; i < num_rssi; i++)
-               rssi_v += pstrNetworkInfo->strRssi.as8RSSI[i];
+               rssi_v += network_info->strRssi.as8RSSI[i];
 
        rssi_v /= num_rssi;
        return rssi_v;