Received: by 10.223.185.116 with SMTP id b49csp1458066wrg; Sun, 4 Mar 2018 02:17:32 -0800 (PST) X-Google-Smtp-Source: AG47ELvpfv9BbDXqD4VGBPY/yQr5tKePfEX/+ma6BDyLxTTjSezFvDJv0ocGAn+ejxHrprAUvHrW X-Received: by 2002:a17:902:28e3:: with SMTP id f90-v6mr9908204plb.355.1520158652551; 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=XCL7502jR54J3H0DgtIQGCu6QQiJy1ltzJnRNg32rBDQIP+Ndxn2SPRve9qc1ttI71 ISCODVdnJH47bPjUDU9NJ6uMk1gCprgZ/vQKYGPoiWk/tfB9nhZQxtk33pynMSKjgysY Xl8pdHf3n/BrZWN7D2Gf3A0yc6AFRRK3LXygn5qm6P33MRl1kNrGqJnETs6EUxabHqQs /JwUmQyYWKa41gPSlC5ibbWoNiOvC0n8+I6LNXjWLjO6sRPqmBX42g4vEsMQ75SVJKiG HHhGMnHWROCK7/pEi8jtGSug4knA+ZZiYJuWDjHtJ9SQ55JfzYfdi8URvPvHouF4wnw6 r9lA== 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=3lJSGxnopUtpyzpqrMRZBXNT8kOTnZtN2+9C9OZlJaw=; b=B9tL5mCAtcDxkE+WI1aQDdfUL+zawfQBmMhhIY0TBu0/gq1ErapyQ/NQL8FNdCJBnV uNAC0V7rl4nh0N5YtgpOG+4DyVKjyeX4O1lwYV5VnbCUfZh7BRV/6kFScniLul+4W7v/ aSEtsEUYjPHQZAd3E0vUsEzeDvmoulOiTgVZKixhqIPrp8UtvKPb6/kwQu432mPt/5bc EdXz0gHuRC3txNrrxM+DCZkMBXk8M+CRs7kHa/sOrVQy9nGig12G7fpkoLHtxfwBJkyc RszaTCP161dkhKJZU37qXdVSsfwxmTjVAxuDtD8CHgSK4WXqn25vSLKCFprwFzPgGujY IIVQ== 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 j23si6809781pga.495.2018.03.04.02.17.05; 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 S1752598AbeCDJ4H (ORCPT + 99 others); Sun, 4 Mar 2018 04:56:07 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:37668 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752026AbeCDJ4F (ORCPT ); Sun, 4 Mar 2018 04:56:05 -0500 Received: from [2001:b68:ff:12::131] (port=35066 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 1esQN6-00054d-5K; Sun, 04 Mar 2018 10:56:00 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id B411524425; Sun, 4 Mar 2018 10:55:59 +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:55:56 +0100 Message-Id: <20180304095556.10335-1-Valentin.Vidic@CARNet.hr> X-Mailer: git-send-email 2.16.1 X-SA-Exim-Connect-IP: 2001:b68:ff: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 autolearn=ham version=3.3.2 Subject: [PATCH] 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 --- 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