Received: by 10.223.176.5 with SMTP id f5csp381748wra; Sat, 27 Jan 2018 01:46:03 -0800 (PST) X-Google-Smtp-Source: AH8x225sniu2NXZOIHWzEoDTMLTD2P6ZWuorfYQM1idy8R4ow8m0HBy7Uyd15O8GDmopikJKwrlD X-Received: by 10.98.54.71 with SMTP id d68mr21355097pfa.173.1517046363524; Sat, 27 Jan 2018 01:46:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517046363; cv=none; d=google.com; s=arc-20160816; b=FX8nfXDKDai28CcI2vaB/7kFp5HuuwtIQONNA4Sa3GGMVPX/5O2L41IcrQvgzhkltH RSqdyrGohFAxy4C2Bj4KPzX3lkUQ8kAe4MFdV412FFBXD6sRGlWbHAWr0J1zdZr8vQub ZmZ3RyTPxb0JOwxrz9/Cj1E1DdsSVsPlm6K+IA8MXUPiDrPRXPYdJ7CjEBJvOnv1G5Vp BdprfnXQxXpCLeyYEldVpUzbw4YUczP1RZ/go59h2ebCXuH26nDqPAyFB2AzuFe2nyFO dMkWbBe3SKiT2KJi7kotn8xNPsa159t+88y8dzxY3v+NvjSxgmUz03MiRkgG2isDceYj lItA== 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=LaOFQYdEg8J3G0T8n77/8fuQf/XJNrTu9ATW9+pnmzY=; b=wYgF/y4tTvmcVpTLxayYM5cwmnckDfPrIwe/Sxwa7PA6tCFpv/py1/qx6iUjPPqYsI +YoQ9KWq4WSQ4sOx9fje+knpRk0UDy1pSspq4FxJlDEIscA+be5kXVkFoCneG1MqYXOv eBuBTFmWaOyeY0Fu3cc9F0qkUX28NWNumpkHiPJ5a6tKFeZ/sXHg/Qj33mJRCVcBNmvq XV/3+2vwpWtzgLcVmExZCogos9ajKzpbCr7SYyukaJtStWUnpCQvRKNT4BmkfySAqDqA CimXfxWoSGwR9oVR2F2FnOgW2jHeMPQh0nQoJUXHlrrDC3Dsl5rP7/Mxk6+NZ3HAGaS2 TFJg== 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 k68si4231287pgc.16.2018.01.27.01.45.49; Sat, 27 Jan 2018 01:46:03 -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 S1752714AbeA0Joq (ORCPT + 99 others); Sat, 27 Jan 2018 04:44:46 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:44243 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943AbeA0Jon (ORCPT ); Sat, 27 Jan 2018 04:44:43 -0500 Received: from [2001:b68:ff:12::131] (port=46588 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 1efN2P-0005C4-MY; Sat, 27 Jan 2018 10:44:42 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id 731BA29850; Sat, 27 Jan 2018 10:44:41 +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:14 +0100 Message-Id: <20180127094233.20234-5-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 5/8] staging: pi433: fix CamelCase for currentValue 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 value for modulation register so replace with modulation_reg. Fixes checkpatch warnings: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index c69e63ffe537..261ba1643f5a 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -151,11 +151,11 @@ int rf69_set_modulation(struct spi_device *spi, enum modulation modulation) static enum modulation rf69_get_modulation(struct spi_device *spi) { - u8 currentValue; + u8 modulation_reg; - currentValue = rf69_read_reg(spi, REG_DATAMODUL); + modulation_reg = rf69_read_reg(spi, REG_DATAMODUL); - switch (currentValue & MASK_DATAMODUL_MODULATION_TYPE) { + switch (modulation_reg & MASK_DATAMODUL_MODULATION_TYPE) { case DATAMODUL_MODULATION_TYPE_OOK: return OOK; case DATAMODUL_MODULATION_TYPE_FSK: -- 2.15.1