Received: by 10.213.65.68 with SMTP id h4csp1234224imn; Wed, 14 Mar 2018 13:47:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELvMTn607bd0vbT7vDkJOE/Alt6ecU1nFl0mpG660chAFnYZENPAydVMNutjVwUDK0KpE+Hs X-Received: by 10.98.196.199 with SMTP id h68mr5506056pfk.42.1521060422096; Wed, 14 Mar 2018 13:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521060422; cv=none; d=google.com; s=arc-20160816; b=BMLSCEVC8YYB4c7l7VVOyxNYkRcOQ+t2lVstFGoXq+atpZyZ7PdjMLu68FS4KWObes 5puUIxbPZUpfzzxuilXsTO90Rqld5sp/P2gEtPFB3iBPyX7w2YAu1QV1t7cElfpTTnSv TojQi+rLcogK7IK/g3wki7hgypYTYdPhmdwgOojozqA94YpdLC5CmPCfEuqtT+TsjSU9 V5BLPSHTy+lY70yJFaxQpnU7Ynttlu7M9BA2kPxE3YKrxgb0FXQAKuSpFQvH1wr/7uvc l8yh7rFENT7yKboXR+yo/HZN8hW0jdOenzMUEtc72SlwFPw82UEuc9wXF569dTSjr5wn NYAw== 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=Z05cbhD9A6fIySY10FfZ7QzMoyfEmIe/1Cwxf2bfjTI=; b=j8CYqBRYrG5MkhGBUvCOyZhOOodhqMEsiIrw00v6TrMpcPwsHp66Kxm4YwmcpLrbCr CZdYliqUwGO9bvMKuBO1IFLiaEEytYC89nvvCg/rNWXGUcAnXwM+7dQhbiSaLao8m0Iv vWHCKk1aVqWkrJxTzo7izgea+DxN3PPkaIvimKuadj4h35VXy/08eHeCh/NPboRk+s5V gW1+DfzzdykAmwJmmuVM9nAlMwAnXzp5YhGQ71ZVZjQRwAAahSgF0rF9YAZ5sk0awIwM byWlFc0DUic2KRlq59XiMeJAEA9Z2bMr1nm6mMeayXQkwmCay0nSx52mKw89On5rJDQM GWTQ== 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 n4-v6si2576148pls.685.2018.03.14.13.46.47; Wed, 14 Mar 2018 13:47:02 -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 S1751873AbeCNUoZ (ORCPT + 99 others); Wed, 14 Mar 2018 16:44:25 -0400 Received: from mail.CARNet.hr ([161.53.123.6]:33673 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750950AbeCNUoU (ORCPT ); Wed, 14 Mar 2018 16:44:20 -0400 Received: from cnzgrivvl-t440p.carpriv.carnet.hr ([161.53.12.131]:49944 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 1ewDFy-0007Mf-1g; Wed, 14 Mar 2018 21:44:18 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id D487B24211; Wed, 14 Mar 2018 21:44:17 +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:02 +0100 Message-Id: <20180314204407.2777-2-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 2/7] staging: pi433: fix CamelCase for preambleLength variable 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/rf69.c | 6 +++--- drivers/staging/pi433/rf69.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index e5c7e48a3b86..b2c54999b022 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -590,7 +590,7 @@ int rf69_set_rssi_threshold(struct spi_device *spi, u8 threshold) return rf69_write_reg(spi, REG_RSSITHRESH, threshold); } -int rf69_set_preamble_length(struct spi_device *spi, u16 preambleLength) +int rf69_set_preamble_length(struct spi_device *spi, u16 preamble_length) { int retval; u8 msb, lsb; @@ -598,8 +598,8 @@ int rf69_set_preamble_length(struct spi_device *spi, u16 preambleLength) /* no value check needed - u16 exactly matches register size */ /* calculate reg settings */ - msb = (preambleLength & 0xff00) >> 8; - lsb = (preambleLength & 0xff); + msb = (preamble_length & 0xff00) >> 8; + lsb = (preamble_length & 0xff); /* transmit to chip */ retval = rf69_write_reg(spi, REG_PREAMBLE_MSB, msb); diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index d83808a5dd86..78366f251084 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -44,7 +44,7 @@ int rf69_set_ook_threshold_dec(struct spi_device *spi, enum 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); -int rf69_set_preamble_length(struct spi_device *spi, u16 preambleLength); +int rf69_set_preamble_length(struct spi_device *spi, u16 preamble_length); int rf69_enable_sync(struct spi_device *spi); int rf69_disable_sync(struct spi_device *spi); int rf69_set_fifo_fill_condition(struct spi_device *spi, enum fifo_fill_condition fifo_fill_condition); -- 2.16.2