Received: by 10.223.176.5 with SMTP id f5csp380754wra; Sat, 27 Jan 2018 01:44:32 -0800 (PST) X-Google-Smtp-Source: AH8x225LCp5lB7MWSsOzxFBn/CzhpOLtJVx7bbWaxsitjmhxwC7H969AIR3IdzIWgScN1CYf/Zfv X-Received: by 2002:a17:902:2845:: with SMTP id e63-v6mr15977696plb.438.1517046272772; Sat, 27 Jan 2018 01:44:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517046272; cv=none; d=google.com; s=arc-20160816; b=hH8cOMRaxZeZbrquH6BqtoDBtKZMc0j9SH0oGIZFrUCx6Zr6uSWphta6w6RRKS6iXB OxnUE/gFM0MNRzjZgUkCTJLkmtNzDok7bUxqjl7+C2SFfOX09l7w2vux3YvBelWwIXDy +coAbDes6fKYz0pNewWCk1ZeEjqaj6ejTFD9J8B9YNPrh2AufPkxjskGHcSxwUlgESyq osSJHJb8ai2MTOo408BV2AfgVJZhnrdBTJ8REAlmF4qR+aPUF3WFt65fzjdTBjl+QLaP OElZF+j86VlDqO5TrOj9tE+TUYxBqg93KaUkZpUiHxROEZ57M+jEm6rGyZdIjFNGtBQz zlZw== 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=29ilMoRJZtrPjFjQ1m3rBW9nU4zpNlqrH15jsPnkVmM=; b=w01LU7Xj8hVUxs6Ip4h73+2FEa8OQ6/B6AOGHk7llnVoZXv0ksaP83u7nKrVLNgPJF xPNQUsrGsfKmqO8N8mJKdZf/JGWDm7gB8EjP8vPpP8TzZgMhYuKL5yR+3YHdXci5eJh4 CmXX/+t6Wh7rwQpAD8LI6+Z0OXV1Xo8/ZsijWGwq76YdYx6/0evNk78hHyUGeJMvMbin 9QLcNCWTqN92k5VdHostFAECcXw59RxPaLAofDLAa6HTckqXRTfc2iJLraEtWTyLuSyv UpS/zikTQFJRI1j29vAcwZLlNUy6wppll32Eo0p/ZbYcxWu45TGrbFCKao9O+SVP7E6W 03aQ== 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 x15si4237196pgq.25.2018.01.27.01.44.18; Sat, 27 Jan 2018 01:44:32 -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 S1752642AbeA0Jnj (ORCPT + 99 others); Sat, 27 Jan 2018 04:43:39 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:58136 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752574AbeA0Jnf (ORCPT ); Sat, 27 Jan 2018 04:43:35 -0500 Received: from cnzgrivvl-t440p.carpriv.carnet.hr ([161.53.12.131]:47538 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 1efN1J-0005B9-0Z; Sat, 27 Jan 2018 10:43:33 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id CFEFA29850; Sat, 27 Jan 2018 10:43:32 +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 , Derek Robson , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Sat, 27 Jan 2018 10:42:11 +0100 Message-Id: <20180127094233.20234-2-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: 161.53.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, T_RP_MATCHES_RCVD,URIBL_BLOCKED autolearn=ham version=3.3.2 Subject: [PATCH 2/8] staging: pi433: fix CamelCase for powerLevel 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: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 8 ++++---- drivers/staging/pi433/rf69.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index d55ef95b723e..096bf84e9034 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -330,19 +330,19 @@ int rf69_disable_amplifier(struct spi_device *spi, u8 amplifier_mask) return rf69_clear_bit(spi, REG_PALEVEL, amplifier_mask); } -int rf69_set_output_power_level(struct spi_device *spi, u8 powerLevel) +int rf69_set_output_power_level(struct spi_device *spi, u8 power_level) { // TODO: Dependency to PA0,1,2 setting - powerLevel += 18; + power_level += 18; // check input value - if (powerLevel > 0x1f) { + if (power_level > 0x1f) { dev_dbg(&spi->dev, "set: illegal input param"); return -EINVAL; } // write value - return rf69_read_mod_write(spi, REG_PALEVEL, MASK_PALEVEL_OUTPUT_POWER, powerLevel); + return rf69_read_mod_write(spi, REG_PALEVEL, MASK_PALEVEL_OUTPUT_POWER, power_level); } int rf69_set_pa_ramp(struct spi_device *spi, enum paRamp paRamp) diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index 4531b5d8c08b..cd085f2efa79 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -34,7 +34,7 @@ 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); int rf69_disable_amplifier(struct spi_device *spi, u8 amplifier_mask); -int rf69_set_output_power_level(struct spi_device *spi, u8 powerLevel); +int rf69_set_output_power_level(struct spi_device *spi, u8 power_level); int rf69_set_pa_ramp(struct spi_device *spi, enum paRamp paRamp); int rf69_set_antenna_impedance(struct spi_device *spi, enum antennaImpedance antennaImpedance); int rf69_set_lna_gain(struct spi_device *spi, enum lnaGain lnaGain); -- 2.15.1