Received: by 10.223.185.116 with SMTP id b49csp683298wrg; Tue, 20 Feb 2018 06:14:39 -0800 (PST) X-Google-Smtp-Source: AH8x2266aKayqjz/tiOOuJLhyKSHEuSjejHxAajmEQJIdD/HSfPuk7NB062mUD9PzkZk3FxLA+Kw X-Received: by 2002:a17:902:6941:: with SMTP id k1-v6mr11952248plt.86.1519136079167; Tue, 20 Feb 2018 06:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519136079; cv=none; d=google.com; s=arc-20160816; b=XIeu5w47zQ2mcPLaQ0L28NbwxVgBFmPD/Usts5xzXiessAZbnbiMTMYXUdJkb7P4aZ TnkL1bdA46FU77nJxLYTxOY4andh9vjLi64vtjWIaKZhJ7Hn/UEmHm/P59kLXz7Bo46D lzWjwZGfwzzTeo7/uQW/tWgZe14a8Cg+PeQPqcdw+VzXG/QdlElTaMTryReGm2R3cZtS unNNM88Z7iPdAkZbKfPdLtqCKm4n9iT5+bYO3eVrgur/PRZ6HcAVA0IZT6jCs5G0U4Kn Uo3K2m3lfR17sB/j7r3WkYmIrlaM201pdC+l9V1ZbsMYt/nHYhKYM0X4BUjekITb4xmE B0eA== 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=jLmppv+9LFVGtwIZB9w/EEL6O7cxlFfbaUtmheROCnY=; b=D3QxlrGT4d/D+95dkgt3WvusZrHMlhz43n92eW6ejeociBTMrz+iiPYA9IUtGPIGFO fPKTm+Xa//nFIl7yWqfZB5uz5rFdghZLbHiYvaaq3BGqqfs3d0+vOv9JtobNYfV3s/Lx qeETEjAkzLQy7pDbNNB+Sdgpf/8a90IrUo+Oz0ikFdzHrU7NXtrJTGYNYFw49Too4U16 GHE1NE+aHk3mDZbvwtf8FBk9Egok6EwiXjP5T7r/e32xFpa1PkXCDfq/Ne2ABvhErHsK P+oU346uPvqSKdZbRLK0Rif5iuUaodoGoeovsanw5EgEXKyXuelHLaUk7+xe8+zqnL44 nQTQ== 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 f5si5102107pgq.806.2018.02.20.06.14.16; Tue, 20 Feb 2018 06:14:39 -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 S1751890AbeBTONO (ORCPT + 99 others); Tue, 20 Feb 2018 09:13:14 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:54969 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751807AbeBTONN (ORCPT ); Tue, 20 Feb 2018 09:13:13 -0500 Received: from cnzgrivvl-t440p.carpriv.carnet.hr ([161.53.12.131]:59456 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 1eo8fO-0008K8-ER; Tue, 20 Feb 2018 15:13:11 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id 2D65F23AEF; Tue, 20 Feb 2018 15:13:10 +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:13:07 +0100 Message-Id: <20180220141307.25494-1-Valentin.Vidic@CARNet.hr> X-Mailer: git-send-email 2.16.1 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] staging: pi433: fix CamelCase for addressFiltering 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/pi433_if.c | 4 ++-- 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, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index e8ddc924bb04..aad1debd34a2 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -230,8 +230,8 @@ rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg) if (ret < 0) return ret; } - ret = rf69_set_adressFiltering(dev->spi, - rx_cfg->enable_address_filtering); + ret = rf69_set_address_filtering(dev->spi, + rx_cfg->enable_address_filtering); if (ret < 0) return ret; diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index 22c1631d0bf0..b3fa4fe64c5c 100644 --- a/drivers/staging/pi433/pi433_if.h +++ b/drivers/staging/pi433/pi433_if.h @@ -125,7 +125,7 @@ struct pi433_rx_cfg { /* packet format */ enum option_on_off enable_sync; enum option_on_off enable_length_byte; /* should be used in combination with sync, only */ - enum addressFiltering enable_address_filtering; /* operational with sync, only */ + enum address_filtering enable_address_filtering; /* operational with sync, only */ enum option_on_off enable_crc; /* only operational, if sync on and fixed length or length byte is used */ __u8 sync_length; diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 91c834059710..b2cea5f52eea 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -684,9 +684,9 @@ int rf69_disable_crc(struct spi_device *spi) return rf69_clear_bit(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_CRC_ON); } -int rf69_set_adressFiltering(struct spi_device *spi, enum addressFiltering addressFiltering) +int rf69_set_address_filtering(struct spi_device *spi, enum address_filtering address_filtering) { - switch (addressFiltering) { + switch (address_filtering) { case filteringOff: return rf69_read_mod_write(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_ADDRESSFILTERING, PACKETCONFIG1_ADDRESSFILTERING_OFF); case nodeAddress: diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index 21d7034e2c79..cf89b556cb00 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -53,7 +53,7 @@ int rf69_set_sync_values(struct spi_device *spi, u8 sync_values[8]); int rf69_set_packet_format(struct spi_device *spi, enum packetFormat packetFormat); int rf69_enable_crc(struct spi_device *spi); int rf69_disable_crc(struct spi_device *spi); -int rf69_set_adressFiltering(struct spi_device *spi, enum addressFiltering addressFiltering); +int rf69_set_address_filtering(struct spi_device *spi, enum address_filtering address_filtering); int rf69_set_payload_length(struct spi_device *spi, u8 payload_length); int rf69_set_node_address(struct spi_device *spi, u8 nodeAddress); int rf69_set_broadcast_address(struct spi_device *spi, u8 broadcastAddress); diff --git a/drivers/staging/pi433/rf69_enum.h b/drivers/staging/pi433/rf69_enum.h index 478e3a4c4948..cba3c5b3995c 100644 --- a/drivers/staging/pi433/rf69_enum.h +++ b/drivers/staging/pi433/rf69_enum.h @@ -128,7 +128,7 @@ enum tx_start_condition { fifo_not_empty }; -enum addressFiltering { +enum address_filtering { filteringOff, nodeAddress, nodeOrBroadcastAddress -- 2.16.1