Received: by 10.223.176.5 with SMTP id f5csp381877wra; Sat, 27 Jan 2018 01:46:14 -0800 (PST) X-Google-Smtp-Source: AH8x224xn7XpO6cZWmIzGtD8kw50Me7uA4V692F9gS3db31XB7bv+vEJfaymfczyCcOfNiLhbslg X-Received: by 2002:a17:902:5a1:: with SMTP id f30-v6mr16876988plf.124.1517046373916; Sat, 27 Jan 2018 01:46:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517046373; cv=none; d=google.com; s=arc-20160816; b=GLFHDcZArHoIsTEn+LswlQmGI+FQJak+Q5o36yjj7OBYQ46AwzIq93ieoUmaOm0Apd BD/RnFzSCFqW6xGOVU1B9BlAdGVx6z4i0+lmN+iRCJ0PKL/52OwpJ2mZIMTn9ObA80R6 2SJAtP266LV66yq1aMi7cHwTZ7ptmG/MwzbM3l91Y5r9aaFF2iEfFvmhS/B7xudIneIa hCdMJ15NE/WyH2/5ptFt5bm6qZD7zVZsHjyBNV1k8Ca9uAKYrTnPHWj12FTcdQeewgDj yVw/GpEtw0klfDjfDkeSaixOMw10B0BJG8hLNaSOMIc5up5wCCxJfKQ5bpuKpkp+qBb2 pX5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=kRX36WFpuxSHsOcHEPTLOJ4IuBqy3sSjHCjOSyOo2M0=; b=mFEervUBfM+eOqaSDGHAiDjZlM7AqbpyH+s/hHnxX02QHPDWypsQbl7L24oUFnuNic SA2JVY09EYR3W5AIZzImjCpmaoBGz1Z3Vb3/ReagG1KiUBlvFVpaPThDFjvMPyW6CPFW W6+kx2C7bL6IYOdTu+IHo04cUB4FefedHw+vJvYCEfwKZ8t5ZRUgTwHvf7q1f1sebmPX 0Z4T1PBvV0S/eRfRvkgo/9KZ9C6vf34F47LPwDlvfSlG5fTD1DwqBuBSQsENLV1Gqmg4 Gl0CBF/lMzyZdGw4wNAfgX9UZbFWLxmx8hnrxiXsy0jwDCY1HswQFX2VwlkbvfxSVBXC ia0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si7830049pfl.11.2018.01.27.01.45.59; Sat, 27 Jan 2018 01:46:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752745AbeA0Jo6 (ORCPT + 99 others); Sat, 27 Jan 2018 04:44:58 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:48937 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752493AbeA0Jo4 (ORCPT ); Sat, 27 Jan 2018 04:44:56 -0500 Received: from [2001:b68:ff:12::131] (port=46590 helo=gavran.carpriv.carnet.hr) by mail.carnet.hr with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1efN2c-0005Dg-Sx; Sat, 27 Jan 2018 10:44:55 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id A6F8F29850; Sat, 27 Jan 2018 10:44:54 +0100 (CET) From: Valentin Vidic To: Greg Kroah-Hartman Cc: Valentin Vidic , Marcin Ciupak , =?UTF-8?q?Simon=20Sandstr=C3=B6m?= , Marcus Wolf , Michael Panzlaff , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Sat, 27 Jan 2018 10:42:15 +0100 Message-Id: <20180127094233.20234-6-Valentin.Vidic@CARNet.hr> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180127094233.20234-1-Valentin.Vidic@CARNet.hr> References: <20180127094233.20234-1-Valentin.Vidic@CARNet.hr> X-SA-Exim-Connect-IP: 2001:b68:ff:12::131 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on rigel.CARNet.hr X-Spam-Level: X-Spam-Status: No, score=-2.9 required=10.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=ham version=3.3.2 Subject: [PATCH 6/8] staging: pi433: fix CamelCase for newValue X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Local variable storing the new value for bandwidth register so replace with bandwidth. Fixes checkpatch warnings: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 261ba1643f5a..ef56deccd0af 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -425,7 +425,7 @@ int rf69_set_lna_gain(struct spi_device *spi, enum lnaGain lnaGain) static int rf69_set_bandwidth_intern(struct spi_device *spi, u8 reg, enum mantisse mantisse, u8 exponent) { - u8 newValue; + u8 bandwidth; // check value for mantisse and exponent if (exponent > 7) { @@ -441,29 +441,29 @@ static int rf69_set_bandwidth_intern(struct spi_device *spi, u8 reg, } // read old value - newValue = rf69_read_reg(spi, reg); + bandwidth = rf69_read_reg(spi, reg); // "delete" mantisse and exponent = just keep the DCC setting - newValue = newValue & MASK_BW_DCC_FREQ; + bandwidth = bandwidth & MASK_BW_DCC_FREQ; // add new mantisse switch (mantisse) { case mantisse16: - newValue = newValue | BW_MANT_16; + bandwidth = bandwidth | BW_MANT_16; break; case mantisse20: - newValue = newValue | BW_MANT_20; + bandwidth = bandwidth | BW_MANT_20; break; case mantisse24: - newValue = newValue | BW_MANT_24; + bandwidth = bandwidth | BW_MANT_24; break; } // add new exponent - newValue = newValue | exponent; + bandwidth = bandwidth | exponent; // write back - return rf69_write_reg(spi, reg, newValue); + return rf69_write_reg(spi, reg, bandwidth); } int rf69_set_bandwidth(struct spi_device *spi, enum mantisse mantisse, u8 exponent) -- 2.15.1