Received: by 10.213.65.68 with SMTP id h4csp1233699imn; Wed, 14 Mar 2018 13:45:49 -0700 (PDT) X-Google-Smtp-Source: AG47ELvaDXixHzpbhvJUZTmrTGF2FtMAfh2Hsdc3j6OUwH9obdP0v0xTR3CBmL/q86D8eJFGJglZ X-Received: by 10.99.171.70 with SMTP id k6mr4918314pgp.355.1521060349825; Wed, 14 Mar 2018 13:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521060349; cv=none; d=google.com; s=arc-20160816; b=QwWzOgPrs+XO/3ttoYQMMyvBSYDuGjR5ixV4LuxGjGYbUO9iUbGCrSYUFmYZEbggJO EzwtUDN/xeD2TIBQwH0TZaVbMUpJehOv/qVZekfx33FywdCZV7wLPt8GBnGm1/Tjut7U ykc/husK9x6jfu0UDs3u9UlHEHKkBOG6R7Xrb3ycbE64lz5m3/6OD52+6pkfYDvFylJh in4q94OUD2TKEwPzqRAeoCmlomWHnn+vzM/pIP8D6xkBu+Z4gjw1E/HWf2xHbz/ARpI+ wQ9ljhRoaoegPhtM+zV8r/mQNIkXrj24zEGH/FmDa/KVRZCQmiXjnf0rY0TRQ7fZOBOV Beyg== 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=icDQ5eYJLxTvJqTUS7WDHgiGcGkS+5Ui51IsqrroP78=; b=Te8gIwlZJ3S11INCBw9ghJ42Nee5d+bQZeTmPbCYFPQAx2agFMTXY7j6HKxIFVn2nP hUY9ETXyH1nF/h0mZArawcvfB8OoRL0sm8MgESCY3z0c/QyKheQHx87Bn2Ed3h16CDL+ HMHXmJTHSp8HzzlsCZh4/oiFNyi02L76YMgsOKK0G/Dh2BBte31alBcxK+4M7R7F3xvs ANXhOTLtXm1DeBxvXdFZ7nOiB7MdXzsfgJrY6ji/UpNiWeWhNkTHRHDl1th2sblaMA8e tOvaN83tEScct5DbXGMXdML4EA4UYPF0WdE+z43HbHtKOjpFpVspOwzOt6f5v1bPpinh Xq/w== 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 q29si2656640pfg.318.2018.03.14.13.45.35; Wed, 14 Mar 2018 13:45:49 -0700 (PDT) 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 S1752081AbeCNUoa (ORCPT + 99 others); Wed, 14 Mar 2018 16:44:30 -0400 Received: from mail.CARNet.hr ([161.53.123.6]:53192 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751869AbeCNUoZ (ORCPT ); Wed, 14 Mar 2018 16:44:25 -0400 Received: from [2001:b68:ff:12::131] (port=41036 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 1ewDG3-0007N8-6x; Wed, 14 Mar 2018 21:44:23 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id 7E7B224211; Wed, 14 Mar 2018 21:44:21 +0100 (CET) From: Valentin Vidic To: Greg Kroah-Hartman Cc: =?UTF-8?q?Simon=20Sandstr=C3=B6m?= , Marcus Wolf , =?UTF-8?q?Luca=20S=C3=B6the?= , Marcin Ciupak , Michael Panzlaff , Derek Robson , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Valentin Vidic Date: Wed, 14 Mar 2018 21:44:04 +0100 Message-Id: <20180314204407.2777-4-Valentin.Vidic@CARNet.hr> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180314204407.2777-1-Valentin.Vidic@CARNet.hr> References: <20180314204407.2777-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 4/7] staging: pi433: fix CamelCase for bitRate variables 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 Fixes checkpatch warnings: CHECK: Avoid CamelCase: CHECK: Avoid CamelCase: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 16 ++++++++-------- drivers/staging/pi433/rf69.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index b57d3f4e9321..e11c9cca447b 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -201,26 +201,26 @@ int rf69_set_modulation_shaping(struct spi_device *spi, } } -int rf69_set_bit_rate(struct spi_device *spi, u16 bitRate) +int rf69_set_bit_rate(struct spi_device *spi, u16 bit_rate) { int retval; - u32 bitRate_min; - u32 bitRate_reg; + u32 bit_rate_min; + u32 bit_rate_reg; u8 msb; u8 lsb; // check input value - bitRate_min = F_OSC / 8388608; // 8388608 = 2^23; - if (bitRate < bitRate_min) { + bit_rate_min = F_OSC / 8388608; // 8388608 = 2^23; + if (bit_rate < bit_rate_min) { dev_dbg(&spi->dev, "setBitRate: illegal input param"); return -EINVAL; } // calculate reg settings - bitRate_reg = (F_OSC / bitRate); + bit_rate_reg = (F_OSC / bit_rate); - msb = (bitRate_reg & 0xff00) >> 8; - lsb = (bitRate_reg & 0xff); + msb = (bit_rate_reg & 0xff00) >> 8; + lsb = (bit_rate_reg & 0xff); // transmit to RF 69 retval = rf69_write_reg(spi, REG_BITRATE_MSB, msb); diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index 78366f251084..ee22a10c85c0 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -29,7 +29,7 @@ int rf69_set_mode(struct spi_device *spi, enum mode mode); int rf69_set_data_mode(struct spi_device *spi, u8 data_mode); int rf69_set_modulation(struct spi_device *spi, enum modulation modulation); int rf69_set_modulation_shaping(struct spi_device *spi, enum mod_shaping mod_shaping); -int rf69_set_bit_rate(struct spi_device *spi, u16 bitRate); +int rf69_set_bit_rate(struct spi_device *spi, u16 bit_rate); int rf69_set_deviation(struct spi_device *spi, u32 deviation); int rf69_set_frequency(struct spi_device *spi, u32 frequency); int rf69_enable_amplifier(struct spi_device *spi, u8 amplifier_mask); -- 2.16.2