From nobody Mon Apr 6 04:43:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89DDEC54EE9 for ; Sun, 11 Sep 2022 16:20:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229492AbiIKQUZ (ORCPT ); Sun, 11 Sep 2022 12:20:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbiIKQUG (ORCPT ); Sun, 11 Sep 2022 12:20:06 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B90F213F02 for ; Sun, 11 Sep 2022 09:20:04 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id wc11so427120ejb.4 for ; Sun, 11 Sep 2022 09:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=5/IIZbWRTXX4L4GClXT0KhOjJ/7HccMx71oM1JZ+Wao=; b=qt8DPBK9nsHDVjwGrqgLpBzVPfG65OzLmfeda/YIKHJx0dLGFN5IpJ0SPQgo4zXgrL q3ZUsNblrO/WcjTt2zoHCg3LI+jX3+XHGc/flOWysgFAkk9kHDfQX07Uz8aJYOQ9t6aS mjY+0vEE7wNFrAR+6S6aryGt73ywxVgDIYmvTdRH0MUK4d7udGVzH6Nfq8rhA84bfAz8 fRZ6gbOHO1gBJCm9Hs5VBNa/WOcH/WL4pHe4pMdP0UqOkf1B0bx357EkzGSmAkrNWYFm e9dpXBps38bCfqH18A41Li2ANSNKWeV8sD+46tciiPQ9aLkEy7JS100oV+qq7MXtL//f Gi5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=5/IIZbWRTXX4L4GClXT0KhOjJ/7HccMx71oM1JZ+Wao=; b=I9Ip9PmXJopFHfogF9/6x8PruNsFvLtHo9HUb4kJYBAs8gQr1uQpuJs2WGoJh+R4tu u2nkGAiNM6BMpq2lLhtCE4bIn1MusxxEhOX0moK6bH+VCZ6k/yJzjoFHuhnio9TcoxAi XiGT9eIvA8/AMGKQl22+kix/hrhHm/5JfmzjhzPtqsajDm5ealaXYK3gTPq8ckpyUway thOEP5edYtnOl6HS0qcDWeNQMxFQDOI61MhzB/9mqiUr9+K9qMSpjPD1XMTCIijTlx8Y men2WAv5FnsI6lT2Qtooj85/Az6zUAYkTcosDL5C0lFWna5B14EVpBcrSrV0VF2TuUV7 jvwQ== X-Gm-Message-State: ACgBeo1bm0V+c7JWKr3qOBtr/LPBq4gKrghOknr+m4I77saF+l4IESAz n/HH4IdeWXLCRWCSICXOiO0= X-Google-Smtp-Source: AA6agR4+ga2QghFLqkPTwzMTva+vEGzt6fMB58RBbVxHQE77kDfdgtbFZmbQmtBlI4nyOY1iQC85Gw== X-Received: by 2002:a17:906:fc6:b0:72f:d080:416 with SMTP id c6-20020a1709060fc600b0072fd0800416mr16218426ejk.1.1662913203217; Sun, 11 Sep 2022 09:20:03 -0700 (PDT) Received: from localhost.localdomain (ip5f5abb6b.dynamic.kabel-deutschland.de. [95.90.187.107]) by smtp.gmail.com with ESMTPSA id bt6-20020a170906b14600b00779dc23be62sm3055346ejb.120.2022.09.11.09.20.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 09:20:02 -0700 (PDT) From: Michael Straube To: gregkh@linuxfoundation.org Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 4/6] staging: r8188eu: rename odm_QueryRxPwrPercentage() Date: Sun, 11 Sep 2022 18:19:47 +0200 Message-Id: <20220911161949.11293-5-straube.linux@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220911161949.11293-1-straube.linux@gmail.com> References: <20220911161949.11293-1-straube.linux@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Rename odm_QueryRxPwrPercentage() to avoid camel case. odm_QueryRxPwrPercentage -> odm_query_rxpwrpercentage Signed-off-by: Michael Straube --- drivers/staging/r8188eu/hal/odm_HWConfig.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/r8188eu/hal/odm_HWConfig.c b/drivers/staging/r= 8188eu/hal/odm_HWConfig.c index a557c5d1542e..8b292644b38c 100644 --- a/drivers/staging/r8188eu/hal/odm_HWConfig.c +++ b/drivers/staging/r8188eu/hal/odm_HWConfig.c @@ -3,7 +3,7 @@ =20 #include "../include/drv_types.h" =20 -static u8 odm_QueryRxPwrPercentage(s8 AntPower) +static u8 odm_query_rxpwrpercentage(s8 AntPower) { if ((AntPower <=3D -100) || (AntPower >=3D 20)) return 0; @@ -117,7 +117,7 @@ static void odm_RxPhyStatus92CSeries_Parsing(struct odm= _dm_struct *dm_odm, break; } rx_pwr_all +=3D 6; - PWDB_ALL =3D odm_QueryRxPwrPercentage(rx_pwr_all); + PWDB_ALL =3D odm_query_rxpwrpercentage(rx_pwr_all); if (!cck_highpwr) { if (PWDB_ALL >=3D 80) PWDB_ALL =3D ((PWDB_ALL - 80) << 1) + ((PWDB_ALL - 80) >> 1) + 80; @@ -162,7 +162,7 @@ static void odm_RxPhyStatus92CSeries_Parsing(struct odm= _dm_struct *dm_odm, pPhyInfo->RxPwr[i] =3D rx_pwr[i]; =20 /* Translate DBM to percentage. */ - RSSI =3D odm_QueryRxPwrPercentage(rx_pwr[i]); + RSSI =3D odm_query_rxpwrpercentage(rx_pwr[i]); total_rssi +=3D RSSI; =20 pPhyInfo->RxMIMOSignalStrength[i] =3D (u8)RSSI; @@ -173,7 +173,7 @@ static void odm_RxPhyStatus92CSeries_Parsing(struct odm= _dm_struct *dm_odm, /* (2)PWDB, Average PWDB calculated by hardware (for rate adaptive) */ rx_pwr_all =3D (((pPhyStaRpt->cck_sig_qual_ofdm_pwdb_all) >> 1) & 0x7f) = - 110; =20 - PWDB_ALL =3D odm_QueryRxPwrPercentage(rx_pwr_all); + PWDB_ALL =3D odm_query_rxpwrpercentage(rx_pwr_all); =20 pPhyInfo->RxPWDBAll =3D PWDB_ALL; pPhyInfo->RxPower =3D rx_pwr_all; --=20 2.37.3