staging: wilc1000: rename pu8IPAddr of fuction Handle_set_IPAddress
authorLeo Kim <leo.kim@atmel.com>
Thu, 5 Nov 2015 05:36:02 +0000 (14:36 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch renames pu8IPAddr of fuction Handle_set_IPAddress to ip_addr
to avoid CamelCase naming convention.

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/host_interface.c

index 17826f3d4407d8a63d58d80f6a6cad8091983365..b1d8b17fc461aafc3d51b70710eca854781f788e 100644 (file)
@@ -397,22 +397,23 @@ static s32 Handle_SetOperationMode(struct host_if_drv *hif_drv,
        return result;
 }
 
-s32 Handle_set_IPAddress(struct host_if_drv *hif_drv, u8 *pu8IPAddr, u8 idx)
+s32 Handle_set_IPAddress(struct host_if_drv *hif_drv, u8 *ip_addr, u8 idx)
 {
        s32 result = 0;
        struct wid wid;
        char firmwareIPAddress[4] = {0};
 
-       if (pu8IPAddr[0] < 192)
-               pu8IPAddr[0] = 0;
+       if (ip_addr[0] < 192)
+               ip_addr[0] = 0;
 
-       PRINT_INFO(HOSTINF_DBG, "Indx = %d, Handling set  IP = %pI4\n", idx, pu8IPAddr);
+       PRINT_INFO(HOSTINF_DBG, "Indx = %d, Handling set  IP = %pI4\n",
+                  idx, ip_addr);
 
-       memcpy(set_ip[idx], pu8IPAddr, IP_ALEN);
+       memcpy(set_ip[idx], ip_addr, IP_ALEN);
 
        wid.id = (u16)WID_IP_ADDRESS;
        wid.type = WID_STR;
-       wid.val = (u8 *)pu8IPAddr;
+       wid.val = (u8 *)ip_addr;
        wid.size = IP_ALEN;
 
        result = send_config_pkt(SET_CFG, &wid, 1,