Received: by 10.223.185.116 with SMTP id b49csp674115wrg; Tue, 20 Feb 2018 06:06:25 -0800 (PST) X-Google-Smtp-Source: AH8x227kuvLDuvleCJk1Nw2te0keCJfGlC1luU9zkAmR1R94Hq0tWmYlAmb4njQt1gHVE2px3kp9 X-Received: by 10.98.86.151 with SMTP id h23mr8044806pfj.79.1519135585353; Tue, 20 Feb 2018 06:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519135585; cv=none; d=google.com; s=arc-20160816; b=xH52bAT+RCTup03dwgZDo9/mJegVvkqQl5IxKr500y/ek4x76q46NoJwyxjBHMf6+W J7tfZtgRL6afUrlI/PQBOlBMc4i0w7QzlulSl1GbA11Ac/MTBshbLLcx62o3VfhOxTtl 3WIBqWaFo+m1Ydg1NY9v8CZkHtqtqobFyKobWYlyiSV4gB+FBcC/+lkHW/XMQA0HY4yq OK0Th50IrnmkzDo3p7Z+9G4FKwPEc862G9WF34evWrmJlMmTzPL25yG0KxzRPaecwMX9 q5/nhmpYLfxh8xdjmK5RVnIgEapmt0zcQZKEB2sVqWYMmNb3phRObKqZrLkO9d45MFpm jpVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:message-id:date:cc:to:from :arc-authentication-results; bh=I2iaWw2KtNKvscc8wzflbc3OYyyFKDWv5RW/ZA6/XWE=; b=qxSXM7Sq/oR3bhipdJ4c2MT2sCaTNqApco1wXoI9SbSdD+K+uhW8jnFcrKkFyq/aQR smFzEOxEgQhSXI5PbZ9G7C+yBZQZBxZdv1as+xOrEU97XqdRddUL89WbWy/aefxjHyIu UbWTFsa0PJRqwSp6hwVcZtEwyKxIDUJwxDaRMPPF2zcTLgo21M3zvhLyUrOMhn7EKEqs GILb3cVArfaOhtZPAQOEcJYFOnijqlv63I6xRtX92qyvvcsRd6xe+o3PWBBXdFV9C2dm V35lDp/QdfGu0RmSXjJLzuk6pXYXLdRgPquSVh/dLSQd2uWvgmXO2Wbp0U19o2BQZNIB b+dA== 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 u3-v6si7427599plj.207.2018.02.20.06.06.09; Tue, 20 Feb 2018 06:06:25 -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 S1751669AbeBTODj (ORCPT + 99 others); Tue, 20 Feb 2018 09:03:39 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:35429 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750773AbeBTODi (ORCPT ); Tue, 20 Feb 2018 09:03:38 -0500 Received: from [2001:b68:ff:12::131] (port=50538 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 1eo8W7-0007Et-JC; Tue, 20 Feb 2018 15:03:36 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id CA46723AEF; Tue, 20 Feb 2018 15:03:33 +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: Tue, 20 Feb 2018 15:03:30 +0100 Message-Id: <20180220140330.22100-1-Valentin.Vidic@CARNet.hr> X-Mailer: git-send-email 2.16.1 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] staging: pi433: fix CamelCase for thresholdDecrement 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 61ba9700d7dc..3313dff3c37e 100644 --- a/drivers/staging/pi433/Documentation/pi433.txt +++ b/drivers/staging/pi433/Documentation/pi433.txt @@ -180,7 +180,7 @@ rf params: threshold value for the signal strength on the receiver input. If this value is exceeded, a reception cycle starts Allowed values: 0...255 - thresholdDecrement + threshold_decrement in order to adapt to different levels of singnal strength, over time the receiver gets more and more sensitive. This value determs, how fast the sensitivity increases. diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index 69847f978a69..22c1631d0bf0 100644 --- a/drivers/staging/pi433/pi433_if.h +++ b/drivers/staging/pi433/pi433_if.h @@ -115,7 +115,7 @@ struct pi433_rx_cfg { enum modulation modulation; __u8 rssi_threshold; - enum thresholdDecrement threshold_decrement; + enum threshold_decrement threshold_decrement; enum antenna_impedance antenna_impedance; enum lnaGain lna_gain; enum mantisse bw_mantisse; /* normal: 0x50 */ diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 722d95a3777f..91c834059710 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -476,9 +476,9 @@ int rf69_set_bandwidth_during_afc(struct spi_device *spi, enum mantisse mantisse return rf69_set_bandwidth_intern(spi, REG_AFCBW, mantisse, exponent); } -int rf69_set_ook_threshold_dec(struct spi_device *spi, enum thresholdDecrement thresholdDecrement) +int rf69_set_ook_threshold_dec(struct spi_device *spi, enum threshold_decrement threshold_decrement) { - switch (thresholdDecrement) { + switch (threshold_decrement) { case dec_every8th: return rf69_read_mod_write(spi, REG_OOKPEAK, MASK_OOKPEAK_THRESDEC, OOKPEAK_THRESHDEC_EVERY_8TH); case dec_every4th: diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index 147d89390745..21d7034e2c79 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -40,7 +40,7 @@ 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_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 thresholdDecrement thresholdDecrement); +int rf69_set_ook_threshold_dec(struct spi_device *spi, enum threshold_decrement threshold_decrement); int rf69_set_dio_mapping(struct spi_device *spi, u8 DIONumber, u8 value); bool rf69_get_flag(struct spi_device *spi, enum flag flag); int rf69_set_rssi_threshold(struct spi_device *spi, u8 threshold); diff --git a/drivers/staging/pi433/rf69_enum.h b/drivers/staging/pi433/rf69_enum.h index 196c95dfe327..478e3a4c4948 100644 --- a/drivers/staging/pi433/rf69_enum.h +++ b/drivers/staging/pi433/rf69_enum.h @@ -82,7 +82,7 @@ enum mantisse { mantisse24 }; -enum thresholdDecrement { +enum threshold_decrement { dec_every8th, dec_every4th, dec_every2nd, -- 2.16.1