Received: by 10.213.65.68 with SMTP id h4csp1234565imn; Wed, 14 Mar 2018 13:47:47 -0700 (PDT) X-Google-Smtp-Source: AG47ELtDMIEuVJFTueDAEHFELupwZQga2IWfcFI2HA8Nx4KPdiLNL2NlzU71vg1liKJ2rUsOzmM6 X-Received: by 10.99.50.66 with SMTP id y63mr4928788pgy.207.1521060467202; Wed, 14 Mar 2018 13:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521060467; cv=none; d=google.com; s=arc-20160816; b=N1cygJSifv3sG+j9p28NFT1M3NjZ8t1ISUHGzE1pj96ybNx5BWm9qeDnQ81FZboCCD mvPHtfwKoPh0cmBC5dzPjA27TtvpFYnZ0XJPp6ibbV204921Oetopcrj9nt2Q4BhUt0X 2xvJ5pjXdcs7EL2llVgBWr57l1P/IxDVsuGU+GQ/e99ljNg5p1/VGgtCRYudxsw6rtha mquSi5UyNAGL/AN0CazXqhGzTVMAKr32BznMdOoFQdNKh/ERLtRoQqkZgQnKqIn8N0a5 yxTNUwP+/+ICbyJy3GY/kepe75NAhk44jAwMZvhv0JJBCCpfF3CUcA8YBgW2VCYYkt8g MyCw== 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=zcz+wfq1GKhaGRLsV4xTuSlLvQTyvnb/YHqnsuNfMYM=; b=XcOAcNSzIGlxkXwQte8dUiQWalO4srsazSoFdWuqcUDYZgWUNOowahD5UqzrEKC2M/ QfjbvS5psi3+QznEPvyMXvCuHpjJrToPYXYrSIgMHOItyNytrYGiRyvSa+QXKmAs7T0I lqZNIy9uxZAx9gnanjkaKfkUdYc3kAPvDVMenS3ZaCshwd0xa0Es+weceIzeypYnaPAb iY2Vy1oP7NMcK6u/IF5pXLGecBt8Dvoi9Y0dKENXxZs708v7/Q7erZc/B142BMXQjzMO UAwM1TZ2r8a1RYONqVf0jxxxm5vUL6F1yzaKcRRB4o5zgCrAG08ML+XtVU0Rhw5/kj9H ZtJw== 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 a33-v6si2516291plc.101.2018.03.14.13.47.33; Wed, 14 Mar 2018 13:47:47 -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 S1752192AbeCNUqQ (ORCPT + 99 others); Wed, 14 Mar 2018 16:46:16 -0400 Received: from mail.CARNet.hr ([161.53.123.6]:53832 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751695AbeCNUoY (ORCPT ); Wed, 14 Mar 2018 16:44:24 -0400 Received: from cnzgrivvl-t440p.carpriv.carnet.hr ([161.53.12.131]:49952 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 1ewDG1-0007NA-Of; Wed, 14 Mar 2018 21:44:22 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id 8ADD9244F8; 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:06 +0100 Message-Id: <20180314204407.2777-6-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: 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 6/7] staging: pi433: fix CamelCase for lnaGain enum 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 warning: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/Documentation/pi433.txt | 2 +- drivers/staging/pi433/pi433_if.h | 2 +- drivers/staging/pi433/rf69.c | 4 ++-- drivers/staging/pi433/rf69.h | 2 +- drivers/staging/pi433/rf69_enum.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/pi433/Documentation/pi433.txt b/drivers/staging/pi433/Documentation/pi433.txt index 79bccc586869..3bb38644eb6e 100644 --- a/drivers/staging/pi433/Documentation/pi433.txt +++ b/drivers/staging/pi433/Documentation/pi433.txt @@ -196,7 +196,7 @@ rf params: sets the electrical adoption of the antenna fifty_ohm - for antennas with an impedance of 50Ohm two_hundred_ohm - for antennas with an impedance of 200Ohm - lnaGain + lna_gain sets the gain of the low noise amp automatic - lna gain is determined by an agc max - lna gain is set to maximum diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index be4a96055a97..b6e214c29ddf 100644 --- a/drivers/staging/pi433/pi433_if.h +++ b/drivers/staging/pi433/pi433_if.h @@ -117,7 +117,7 @@ struct pi433_rx_cfg { __u8 rssi_threshold; enum threshold_decrement threshold_decrement; enum antenna_impedance antenna_impedance; - enum lnaGain lna_gain; + enum lna_gain lna_gain; enum mantisse bw_mantisse; /* normal: 0x50 */ __u8 bw_exponent; /* during AFC: 0x8b */ enum dagc dagc; diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index e3394094f6a1..0bc459e32f6b 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -399,9 +399,9 @@ int rf69_set_antenna_impedance(struct spi_device *spi, enum antenna_impedance an } } -int rf69_set_lna_gain(struct spi_device *spi, enum lnaGain lnaGain) +int rf69_set_lna_gain(struct spi_device *spi, enum lna_gain lna_gain) { - switch (lnaGain) { + switch (lna_gain) { case automatic: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_AUTO); case max: diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index 4d6fc07f8255..b9f6850e3316 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -37,7 +37,7 @@ int rf69_disable_amplifier(struct spi_device *spi, u8 amplifier_mask); int rf69_set_output_power_level(struct spi_device *spi, u8 power_level); int rf69_set_pa_ramp(struct spi_device *spi, enum pa_ramp pa_ramp); int rf69_set_antenna_impedance(struct spi_device *spi, enum antenna_impedance antenna_impedance); -int rf69_set_lna_gain(struct spi_device *spi, enum lnaGain lnaGain); +int rf69_set_lna_gain(struct spi_device *spi, enum lna_gain lna_gain); int rf69_set_bandwidth(struct spi_device *spi, enum mantisse mantisse, u8 exponent); int rf69_set_bandwidth_during_afc(struct spi_device *spi, enum mantisse mantisse, u8 exponent); int rf69_set_ook_threshold_dec(struct spi_device *spi, enum threshold_decrement threshold_decrement); diff --git a/drivers/staging/pi433/rf69_enum.h b/drivers/staging/pi433/rf69_enum.h index 5ac3d33a3d0c..eabaea99949d 100644 --- a/drivers/staging/pi433/rf69_enum.h +++ b/drivers/staging/pi433/rf69_enum.h @@ -65,7 +65,7 @@ enum antenna_impedance { two_hundred_ohm }; -enum lnaGain { +enum lna_gain { automatic, max, max_minus_6, -- 2.16.2