Received: by 10.223.185.116 with SMTP id b49csp2280319wrg; Sun, 4 Mar 2018 23:21:16 -0800 (PST) X-Google-Smtp-Source: AG47ELshEVkRn2CPOeUoudEtSEprmtnDKZNMdnHVbmK/tHcQZOzzwV7LeRrxe9NFG+NSaE2BQ15y X-Received: by 10.101.96.73 with SMTP id b9mr11545817pgv.339.1520234476861; Sun, 04 Mar 2018 23:21:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520234476; cv=none; d=google.com; s=arc-20160816; b=eBaVU/mSwUu7kqWNQ0S3dD+xbO/7WXxdh999pRXTVyiSoA0uGb0Zx9qFmabL80b2h9 hJb/FBUy0K6Iu3Xkg1J+wiytjYx52EMet5j1rJP71N7xUQo0EFN/a4sE3pwsl5+Eleoo 0yfgi/nWpODZGEz/xq0vVdvsdDvZZ3jJcBJbEWefmKYMb/Vvkho7tCbRUZxyiwb+NDzJ QxUu9lkwJYCE12Kj9qVWvQTbR08szt8XMFEHIdKSF/kLs8HK4RrQeWWCDPlpX9cE/sK0 PfSD25K9Dz8H7YbZF9PUDvFXBUZp4Qo4iwl0dU58Idw2kIlziqNvItpQBt+NqjfCxeii Vs/A== 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=IOeLB1QtiOlGfKz55C/E2Rw4ZSEegIne9Xf5qJFgXcY=; b=rI47zzPRlP3/mwh2bFCiMvhTLpSCCpLQgz3chHOltpnNC7p02vIPoe1iOCh9Z4bArC DcrERvfoJ/w7XhQ6NdTm46YjyuEdmWeoGi/GILW3tnqpULyiAOItgI1RMPYxHA/b5yWc u3eX6jekKQcFsMYR48q397k0VkF5/VI9tnd6hQWT/KN4jFkDzRgRZgbhTh6aZAnNcuPU nYJ17xpTmAzkjei2e6XnqeZ8BrSpVHD0s7GhYwfmyjIs+067d84wCM++sgyXpdyecUJR Uyk3ttxuA32nZEkUAomAeN4G1iwIaQfO/0jUTX14JoInWAIIzvxOxlzqsrs7nacZpZse 8wnw== 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 k198si7995110pgc.299.2018.03.04.23.21.01; Sun, 04 Mar 2018 23:21:16 -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 S932832AbeCEHCj (ORCPT + 99 others); Mon, 5 Mar 2018 02:02:39 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:57372 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932630AbeCEHCf (ORCPT ); Mon, 5 Mar 2018 02:02:35 -0500 Received: from cnzgrivvl-t440p.carpriv.carnet.hr ([161.53.12.131]:47204 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 1esk8j-0007JM-J0; Mon, 05 Mar 2018 08:02:31 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id 59F6123AFA; Mon, 5 Mar 2018 08:02:29 +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:14 +0100 Message-Id: <20180305070219.7131-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 1/6 v2] staging: pi433: fix CamelCase for packetFormat 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 --- v2: order patches so they apply correctly drivers/staging/pi433/pi433_if.c | 8 ++++---- drivers/staging/pi433/rf69.c | 8 ++++---- drivers/staging/pi433/rf69.h | 2 +- drivers/staging/pi433/rf69_enum.h | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index aad1debd34a2..b1cbec876857 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -222,11 +222,11 @@ rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg) return ret; } if (rx_cfg->enable_length_byte == OPTION_ON) { - ret = rf69_set_packet_format(dev->spi, packetLengthVar); + ret = rf69_set_packet_format(dev->spi, packet_length_var); if (ret < 0) return ret; } else { - ret = rf69_set_packet_format(dev->spi, packetLengthFix); + ret = rf69_set_packet_format(dev->spi, packet_length_fix); if (ret < 0) return ret; } @@ -337,11 +337,11 @@ rf69_set_tx_cfg(struct pi433_device *dev, struct pi433_tx_cfg *tx_cfg) } if (tx_cfg->enable_length_byte == OPTION_ON) { - ret = rf69_set_packet_format(dev->spi, packetLengthVar); + ret = rf69_set_packet_format(dev->spi, packet_length_var); if (ret < 0) return ret; } else { - ret = rf69_set_packet_format(dev->spi, packetLengthFix); + ret = rf69_set_packet_format(dev->spi, packet_length_fix); if (ret < 0) return ret; } diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index b2cea5f52eea..54d8105b5812 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -661,12 +661,12 @@ int rf69_set_sync_values(struct spi_device *spi, u8 sync_values[8]) return retval; } -int rf69_set_packet_format(struct spi_device *spi, enum packetFormat packetFormat) +int rf69_set_packet_format(struct spi_device *spi, enum packet_format packet_format) { - switch (packetFormat) { - case packetLengthVar: + switch (packet_format) { + case packet_length_var: return rf69_set_bit(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_PAKET_FORMAT_VARIABLE); - case packetLengthFix: + case packet_length_fix: return rf69_clear_bit(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_PAKET_FORMAT_VARIABLE); default: dev_dbg(&spi->dev, "set: illegal input param"); diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index cf89b556cb00..7b7932a553e8 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -50,7 +50,7 @@ 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); int rf69_set_sync_size(struct spi_device *spi, u8 sync_size); 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_set_packet_format(struct spi_device *spi, enum packet_format packet_format); int rf69_enable_crc(struct spi_device *spi); int rf69_disable_crc(struct spi_device *spi); int rf69_set_address_filtering(struct spi_device *spi, enum address_filtering address_filtering); diff --git a/drivers/staging/pi433/rf69_enum.h b/drivers/staging/pi433/rf69_enum.h index cba3c5b3995c..682b667bf342 100644 --- a/drivers/staging/pi433/rf69_enum.h +++ b/drivers/staging/pi433/rf69_enum.h @@ -118,9 +118,9 @@ enum fifo_fill_condition { always }; -enum packetFormat { - packetLengthFix, - packetLengthVar +enum packet_format { + packet_length_fix, + packet_length_var }; enum tx_start_condition { -- 2.16.1