From patchwork Wed Feb 22 17:14:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tahia Khan X-Patchwork-Id: 9587211 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 121926051E for ; Wed, 22 Feb 2017 17:14:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F15192853A for ; Wed, 22 Feb 2017 17:14:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3D5328554; Wed, 22 Feb 2017 17:14:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BC942853A for ; Wed, 22 Feb 2017 17:14:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932456AbdBVROq (ORCPT ); Wed, 22 Feb 2017 12:14:46 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:36013 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754345AbdBVROo (ORCPT ); Wed, 22 Feb 2017 12:14:44 -0500 Received: by mail-qt0-f195.google.com with SMTP id n37so1191778qtb.3; Wed, 22 Feb 2017 09:14:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=KQPSZcdq342k7YDwBI7WRny4ReeW5Aa5BPJn9p/BDFA=; b=c09gFi/W6dgzp11Zt6ASyXU6XXi6V8RgMeasraPu1+X9wyKp9syVHT2j7fSFoaMiq0 6CpWOsZX+dDrWMlbidYDxG6N/XeHiX16zx8G/576GnTSMXsR2RAunyr5pcD44+1OlrQ9 JVg1hBdGLULjM6lZcpvQG9s4HfKCjIAs5IaUoHZ0GkLoDVJqN8fwVq7oI2aHvqEWq5WO /87fRt8EC0YMzKiq4lSuM7inHyTUQSLp2z390QJp1DfqYPuD3LAY7Fxx1WYNxDgC4ovy jIwnz020nkIfF30Jy++1XlwhoWQyzks7geQjmrzheppCQt6s+7gJXdYDyRsdsyfC0UxR SWWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=KQPSZcdq342k7YDwBI7WRny4ReeW5Aa5BPJn9p/BDFA=; b=MjBh+BsDXhn1IAMgDot0mTz+6MR20QeO8lsSZ4OA/1UoSrLkimqwcnAV8iqbvNsb3V z59O54etwji/comSpSQ/hqHer1FPIZBLatf6VwC6Z87JVfIUEphJIaU0SB6zW2agaGj3 S+VCinS6tcbFXh3laX1hquFG4ijJOjSCC5xQSTUMwpxN+1gWY5jHAVgc9x5oJ90Uc+bU QbTlACuoEYj455uZaQDHsrB9JWdvj/k6RgIKbCDpi+u0YtUEGwKzjntDbv58suMRPG3b 29z8atKID2KohhYKAmdo49Y8ozP44g/gCICKJEdjfKbOBhwKYWHDJ3QCghJ8Wqx3OMVz rgUw== X-Gm-Message-State: AMke39kldHIQS6+L8AdMo+vzQIs87UBd8vIKJjjWnMMXb8UJrHpzFI7FCS/BlpM7PV8o0w== X-Received: by 10.237.50.66 with SMTP id y60mr33794614qtd.12.1487783683557; Wed, 22 Feb 2017 09:14:43 -0800 (PST) Received: from coolbox ([66.207.196.194]) by smtp.gmail.com with ESMTPSA id j95sm1030694qte.52.2017.02.22.09.14.42 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Feb 2017 09:14:42 -0800 (PST) Date: Wed, 22 Feb 2017 12:14:41 -0500 From: Tahia Khan To: outreachy-kernel@googlegroups.com, aditya.shankar@microchip.com, ganesh.krishna@microchip.com, gregkh@linuxfoundation.org, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] staging: wilc1000: renames struct tstrRSSI and its members u8Index, u8Full Message-ID: <20170222171403.GA20626@coolbox> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes multiple camel case checks on struct tstrRSSI from checkpatch.pl: Avoid CamelCase: Avoid CamelCase: Avoid CamelCase: Signed-off-by: Tahia Khan --- drivers/staging/wilc1000/coreconfigurator.h | 8 ++++---- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.h b/drivers/staging/wilc1000/coreconfigurator.h index cff1698..5b65c4f 100644 --- a/drivers/staging/wilc1000/coreconfigurator.h +++ b/drivers/staging/wilc1000/coreconfigurator.h @@ -70,9 +70,9 @@ enum connect_status { CONNECT_STS_FORCE_16_BIT = 0xFFFF }; -struct tstrRSSI { - u8 u8Full; - u8 u8Index; +struct tstr_RSSI { + u8 full; + u8 index; s8 as8RSSI[NUM_RSSI]; }; @@ -93,7 +93,7 @@ struct network_info { u8 *ies; u16 ies_len; void *join_params; - struct tstrRSSI str_rssi; + struct tstr_RSSI str_rssi; u64 tsf_hi; }; diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index f7ce47c..56f133e 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -205,8 +205,8 @@ static u32 get_rssi_avg(struct network_info *network_info) { u8 i; int rssi_v = 0; - u8 num_rssi = (network_info->str_rssi.u8Full) ? - NUM_RSSI : (network_info->str_rssi.u8Index); + u8 num_rssi = (network_info->str_rssi.full) ? + NUM_RSSI : (network_info->str_rssi.index); for (i = 0; i < num_rssi; i++) rssi_v += network_info->str_rssi.as8RSSI[i]; @@ -346,13 +346,13 @@ static void add_network_to_shadow(struct network_info *pstrNetworkInfo, } else { ap_index = ap_found; } - rssi_index = last_scanned_shadow[ap_index].str_rssi.u8Index; + rssi_index = last_scanned_shadow[ap_index].str_rssi.index; last_scanned_shadow[ap_index].str_rssi.as8RSSI[rssi_index++] = pstrNetworkInfo->rssi; if (rssi_index == NUM_RSSI) { rssi_index = 0; - last_scanned_shadow[ap_index].str_rssi.u8Full = 1; + last_scanned_shadow[ap_index].str_rssi.full = 1; } - last_scanned_shadow[ap_index].str_rssi.u8Index = rssi_index; + last_scanned_shadow[ap_index].str_rssi.index = rssi_index; last_scanned_shadow[ap_index].rssi = pstrNetworkInfo->rssi; last_scanned_shadow[ap_index].cap_info = pstrNetworkInfo->cap_info; last_scanned_shadow[ap_index].ssid_len = pstrNetworkInfo->ssid_len;