Received: by 10.223.176.5 with SMTP id f5csp381276wra; Sat, 27 Jan 2018 01:45:21 -0800 (PST) X-Google-Smtp-Source: AH8x224vqWrdrhk1sNNOwrlh9W6in5hHh/AZVL7UArWIFVduFe5TJexrBHRhF3YEX+s9LKeBg+Ky X-Received: by 2002:a17:902:ba95:: with SMTP id k21-v6mr6774168pls.86.1517046321786; Sat, 27 Jan 2018 01:45:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517046321; cv=none; d=google.com; s=arc-20160816; b=eWfjsRarLHVbusqd/PDTvrfFryckC4zVnqrkEija5GGjBLpwltN54dxNPD0aKp9bVH Qi5WWwBQ+oqLw+OBVUTmY89epK3ddbbYNxPi/AZyjdLvVOGUWG06et+rkAs2hvTjrUWw F1oOh7/tRGoU9LojIGme1XX2gkMomaafgiPVXt3n6yWGVWjl4O6Bg+hku0gDjGU2WfkD JEYwu9fjcYQAvKlbxQCQL3VE97YgbRZRvQF4aVBaJ5Un22jNd1vdhazdM5JeMmqXYaJ2 2giDsoQIKnmSw7tj1CzlxgqC0vfIn5fgUnjUHAM5GkjdXur0smeVURoKyI3HaPPF2MPI afAw== 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=IQHPwwwgmqDD+tJKeDn7zGNSI4bQ7/TZY3iVhHRwl0w=; b=1Cy4WKxgta5uVe7/OhU59JVdzvsKQXHSUQbeOZcjaUeI74GCpBVbwc8MWDgvT5gwtn D5JoK+Ts+tZaygajNZ8+QgPEpmN4VstpFZ9diXytcva6i0AJSMAZvu6oTebD90gmthIM 88XDy0m5jVeQ4LTKKwg9Wzeb5N81lvHvHWUpVzV6USK2iy9sZ2b6Il/RqsyBnSRMzgvp 4D+gaE7cE5q1b5BJ9sVsA7GRWU04n5dQwL84TBhNyVat6U8AsqqqZv0xaY1/AjWykJo1 +AiGPzftiqkCtYTDK1Zdr5i2DO3/G+yV7v5qpgAFYef61aVx1g+LRtWSgYwZVTtGo1qL E1Jw== 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 124si4182303pgb.284.2018.01.27.01.45.07; Sat, 27 Jan 2018 01:45:21 -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 S1752693AbeA0JoN (ORCPT + 99 others); Sat, 27 Jan 2018 04:44:13 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:50753 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943AbeA0JoI (ORCPT ); Sat, 27 Jan 2018 04:44:08 -0500 Received: from [2001:b68:ff:12::131] (port=46584 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 1efN1p-0005BT-Jk; Sat, 27 Jan 2018 10:44:06 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id 71D1429850; Sat, 27 Jan 2018 10:44:05 +0100 (CET) From: Valentin Vidic To: Greg Kroah-Hartman Cc: Valentin Vidic , Marcus Wolf , Keerthi Reddy , =?UTF-8?q?Simon=20Sandstr=C3=B6m?= , =?UTF-8?q?Luca=20S=C3=B6the?= , Marcin Ciupak , Michael Panzlaff , Derek Robson , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Sat, 27 Jan 2018 10:42:12 +0100 Message-Id: <20180127094233.20234-3-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 3/8] staging: pi433: fix CamelCase for antennaImpedance 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/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 7d9dc2244848..05f278180ca3 100644 --- a/drivers/staging/pi433/Documentation/pi433.txt +++ b/drivers/staging/pi433/Documentation/pi433.txt @@ -192,7 +192,7 @@ rf params: step_4_0db - increase in 4 db steps step_5_0db - increase in 5 db steps step_6_0db - increase in 6 db steps - antennaImpedance + antenna_impedance sets the electrical adoption of the antenna fiftyOhm - for antennas with an impedance of 50Ohm twohundretOhm - for antennas with an impedance of 200Ohm diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index 7314f69af198..c4e4ea086a24 100644 --- a/drivers/staging/pi433/pi433_if.h +++ b/drivers/staging/pi433/pi433_if.h @@ -116,7 +116,7 @@ struct pi433_rx_cfg { __u8 rssi_threshold; enum thresholdDecrement threshold_decrement; - enum antennaImpedance antenna_impedance; + enum antenna_impedance antenna_impedance; enum lnaGain lna_gain; enum mantisse bw_mantisse; /* normal: 0x50 */ __u8 bw_exponent; /* during AFC: 0x8b */ diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 096bf84e9034..34ea865e55de 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -386,9 +386,9 @@ 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_antenna_impedance(struct spi_device *spi, enum antenna_impedance antenna_impedance) { - switch (antennaImpedance) { + switch (antenna_impedance) { case fiftyOhm: return rf69_clear_bit(spi, REG_LNA, MASK_LNA_ZIN); case twohundretOhm: diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index cd085f2efa79..2c0d130f7a03 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -36,7 +36,7 @@ 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 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_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_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); diff --git a/drivers/staging/pi433/rf69_enum.h b/drivers/staging/pi433/rf69_enum.h index 03440cfa957c..7d0da84e2a29 100644 --- a/drivers/staging/pi433/rf69_enum.h +++ b/drivers/staging/pi433/rf69_enum.h @@ -60,7 +60,7 @@ enum paRamp { ramp10 }; -enum antennaImpedance { +enum antenna_impedance { fiftyOhm, twohundretOhm }; -- 2.15.1