Received: by 10.223.185.116 with SMTP id b49csp2270095wrg; Sun, 4 Mar 2018 23:06:57 -0800 (PST) X-Google-Smtp-Source: AG47ELs7Wldj34KU7d4FmS5wxm7xSol3qtrPKCEv3YnbpQPIj8Rjf2SzO6hTAr6taw4ZIgtbKAdI X-Received: by 2002:a17:902:51ee:: with SMTP id y101-v6mr12414898plh.157.1520233617790; Sun, 04 Mar 2018 23:06:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520233617; cv=none; d=google.com; s=arc-20160816; b=pQCUMIDTKyAamcWBnzx3rbOthuraghQZChuBliROAj0indrcZONd22lCGSZ3Iuqt9P qbrXsU1rWWtVpHsIft2d5K6Se6ZK/h73tYQooommWO03idZVUwSDAlcPLvmFF2C1lStj 5PlTmiyPPAjv6BGLZUfC40ZrfPsj4/lfb5KWvCnib2f4th9w4K/6WOg1o8geEV89ykDm mhCCR7xu3jpURQqKJImRCxX0I4zbmdzwa+bT97j3mTFdG+sGiFPkj9YfD73nYnWSQilM qbMQqR5qgssOVibzDFv40IdKnQZTvExvJ1rUxzDta80oO4qqw56rE6RCtKB0w0aOJQgp mmOw== 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=xkPMV9SDuX7+RXkMt/AZkbRlPBHCljaD41rBnfWZXpg=; b=IhYgfMgthWMRFKbSkP0xFoiPS13XLJMNZ8msw1Anpsz5uz0WWXlnBfonZf0BI8jjgn Jn0WlSSLnuggdblRbL4ZlkxEnZZ4MRY4CMpLs+P3drpmy+oVsk5eutUFi4KJMx6YvC+r ZL0lhdIRsV23WYJCCiJnMstRv7iDp1BenyUrGMd/qh0Pl1QzwNQ6QhCnlhzZGEogSHAV Jzwv6GY/xheaWLXKEJJ9ZcvU5H3cq21KbZV3HLbKLj2z0RGAx6DWN2lFrbKCgVyTwtkX ii+FiCfhzqSF/j/dVQgrs+euX/imW4SIhLFQVe8G1I+8uJ4uVJb/tdWhwGLjfAnXp1lk DRWg== 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 i187si9763580pfe.175.2018.03.04.23.06.43; Sun, 04 Mar 2018 23:06:57 -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 S932888AbeCEHCp (ORCPT + 99 others); Mon, 5 Mar 2018 02:02:45 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:54839 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932774AbeCEHCj (ORCPT ); Mon, 5 Mar 2018 02:02:39 -0500 Received: from cnzgrivvl-t440p.carpriv.carnet.hr ([161.53.12.131]:47210 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 1esk8p-0007KD-M9; Mon, 05 Mar 2018 08:02:36 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id 821E524306; Mon, 5 Mar 2018 08:02:35 +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: Mon, 5 Mar 2018 08:02:17 +0100 Message-Id: <20180305070219.7131-4-Valentin.Vidic@CARNet.hr> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180305070219.7131-1-Valentin.Vidic@CARNet.hr> References: <20180305070219.7131-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 autolearn=ham version=3.3.2 Subject: [PATCH 4/6] staging: pi433: fix CamelCase for address_filtering 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 warnings: CHECK: Avoid CamelCase: CHECK: Avoid CamelCase: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/Documentation/pi433.txt | 12 ++++++------ drivers/staging/pi433/pi433_if.c | 6 +++--- drivers/staging/pi433/rf69.c | 6 +++--- drivers/staging/pi433/rf69_enum.h | 6 +++--- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/pi433/Documentation/pi433.txt b/drivers/staging/pi433/Documentation/pi433.txt index 3313dff3c37e..2e8835bf2c9a 100644 --- a/drivers/staging/pi433/Documentation/pi433.txt +++ b/drivers/staging/pi433/Documentation/pi433.txt @@ -232,12 +232,12 @@ rf params: amount of bytes that were requested by the read request. Attention: should be used in combination with sync, only enable_address_filtering; - filteringOff - no address filtering will take place - nodeAddress - all telegrams, not matching the node - address will be internally discarded - nodeOrBroadcastAddress - all telegrams, neither matching the - node, nor the broadcast address will - be internally discarded + filtering_off - no address filtering will take place + node_address - all telegrams, not matching the node + address will be internally discarded + node_or_broadcast_address - all telegrams, neither matching the + node, nor the broadcast address will + be internally discarded Attention: Sync option must be enabled in order to use this feature enable_crc optionOn - a crc will be calculated over the payload of diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 730200597218..88da91d31e61 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -257,7 +257,7 @@ rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg) payload_length = rx_cfg->fixed_message_length; if (rx_cfg->enable_length_byte == OPTION_ON) payload_length++; - if (rx_cfg->enable_address_filtering != filteringOff) + if (rx_cfg->enable_address_filtering != filtering_off) payload_length++; ret = rf69_set_payload_length(dev->spi, payload_length); if (ret < 0) @@ -274,7 +274,7 @@ rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg) if (ret < 0) return ret; } - if (rx_cfg->enable_address_filtering != filteringOff) { + if (rx_cfg->enable_address_filtering != filtering_off) { ret = rf69_set_node_address(dev->spi, rx_cfg->node_address); if (ret < 0) return ret; @@ -502,7 +502,7 @@ pi433_receive(void *data) } /* address byte enabled? */ - if (dev->rx_cfg.enable_address_filtering != filteringOff) { + if (dev->rx_cfg.enable_address_filtering != filtering_off) { u8 dummy; bytes_total--; diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index a73a3d2c0685..f419a3d4485b 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -687,11 +687,11 @@ int rf69_disable_crc(struct spi_device *spi) int rf69_set_address_filtering(struct spi_device *spi, enum address_filtering address_filtering) { switch (address_filtering) { - case filteringOff: + case filtering_off: return rf69_read_mod_write(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_ADDRESSFILTERING, PACKETCONFIG1_ADDRESSFILTERING_OFF); - case nodeAddress: + case node_address: return rf69_read_mod_write(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_ADDRESSFILTERING, PACKETCONFIG1_ADDRESSFILTERING_NODE); - case nodeOrBroadcastAddress: + case node_or_broadcast_address: return rf69_read_mod_write(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_ADDRESSFILTERING, PACKETCONFIG1_ADDRESSFILTERING_NODEBROADCAST); default: dev_dbg(&spi->dev, "set: illegal input param"); diff --git a/drivers/staging/pi433/rf69_enum.h b/drivers/staging/pi433/rf69_enum.h index d82d2be88cbd..43990e74db85 100644 --- a/drivers/staging/pi433/rf69_enum.h +++ b/drivers/staging/pi433/rf69_enum.h @@ -129,9 +129,9 @@ enum tx_start_condition { }; enum address_filtering { - filteringOff, - nodeAddress, - nodeOrBroadcastAddress + filtering_off, + node_address, + node_or_broadcast_address }; enum dagc { -- 2.16.1