Received: by 10.223.185.116 with SMTP id b49csp1458069wrg; Sun, 4 Mar 2018 02:17:32 -0800 (PST) X-Google-Smtp-Source: AG47ELuH7vnx+n8fLnu1tmJsjt2e6QB+0NjFOV48dKwAKiTBI00sBqf5NgHyylL5599N9x+X4eOu X-Received: by 2002:a17:902:33a5:: with SMTP id b34-v6mr9774268plc.263.1520158652574; Sun, 04 Mar 2018 02:17:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520158652; cv=none; d=google.com; s=arc-20160816; b=Cg3O2CjXlR+V0gGXkOG31xalzKQss/eNemaiaOVtJcdLISePyRnhsdxl9so7ThAuIM P5tomd8//W+aO9ZN4NfeRs5CGgX16pqFjC6wPCJZtSBTcW8XeSPupF0Nggj4VLX01aMQ qGEkI9eu7ZM+4nxDjuCuWVb1FwJZE+jai5GYSoLBS5yR+C71Qg/af9O69NW3K8yheg7F 60TZFIqwuNjYtQbfZzLRnRgel1roJ2XuJdxbfFJohJJqYgn+ZXl5fGOUBWXZepMiBBy7 EWFWDi78ph8F9s0x496f51tRTTpNssDxPYt5EHflkMExOFpa5HgYkmVejb3orEFj0QMu dTew== 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=xkPMV9SDuX7+RXkMt/AZkbRlPBHCljaD41rBnfWZXpg=; b=ylx9bahLLlqxXIlIfr/3Zxk7MD1O/Jsaej57O8+4gxrW7cFxP/RwDUOc0C7+xD8kCe 9B/iVaFfme3lr9EvCFyg0TOMVMHmLvSrAHKOs+2hyvyckrVNQPjpUH9tB6YKUzyxQL1q fMt5Ou+uRLIf53Z1C/UuGA6RRvvgfubjXoOiemkw/zabzwluB3mrdbSaLH5JfM44BmXA LmCymxnFQwz6xnAnvZRN70VZ77S7tMwuMuJhsTK4T0GxjYfMyfr7d+FYOhkdTXnsTYnn fjhJrT2kkObG46EugxJUEAdgOHRUe74qdFoIf6AZvO7eNHOK/vvQ8fy5QC9zqvY8OWMm cKUA== 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 1-v6si7614443ply.552.2018.03.04.02.17.06; Sun, 04 Mar 2018 02:17:32 -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 S932242AbeCDJ4f (ORCPT + 99 others); Sun, 4 Mar 2018 04:56:35 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:34739 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932199AbeCDJ4d (ORCPT ); Sun, 4 Mar 2018 04:56:33 -0500 Received: from cnzgrivvl-t440p.carpriv.carnet.hr ([161.53.12.131]:43984 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 1esQNa-00055M-Jz; Sun, 04 Mar 2018 10:56:31 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id 3749224425; Sun, 4 Mar 2018 10:56:30 +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: Sun, 4 Mar 2018 10:56:29 +0100 Message-Id: <20180304095629.10482-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 autolearn=ham version=3.3.2 Subject: [PATCH] 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