Received: by 10.223.185.116 with SMTP id b49csp1458237wrg; Sun, 4 Mar 2018 02:17:47 -0800 (PST) X-Google-Smtp-Source: AG47ELuD3VUAsIwAz4BZiUrp0yKejjo0yPt1igkxZsB/Cw0xDXJLDZwgszoIpx7ALsrf5AKVyESo X-Received: by 10.101.77.7 with SMTP id i7mr9343957pgt.330.1520158667007; Sun, 04 Mar 2018 02:17:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520158666; cv=none; d=google.com; s=arc-20160816; b=MLT9ySvw6sB045euV8Wg2Xq+chSes9BqpykoPZO1Oj4MuB3FFgWm4OKIl8e3T31BH0 me6nJsyF2C2d1TSrxGSe/DNiUTanjooVwKrX5N0EwxlwqwbbdFNOGa86M4uLH13Crl30 jZF8ucyufwnZQt/BMNEoI3mS1MauxDWSPwioZU+t4A7EIWAlSPBDoclj1tl2gN/712iq m3jP9LXBIpTCR611MSk94DwzgxhPbdPK5pP6tI7Vg54VvdGIvfRkC4JpvZTGaKyhtnDI 1vHt6mX6pBq99YRbtE576LGPsT5pyBxKLvB6zFdHF6uDzbycMdhg0JwinilztuttraHL vPcw== 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=RjA+9nENu63hq/fPUlTo5EJeKjq4oEBGOj7laPWNJ94=; b=BHPm5GnnwPi3N0z7GBGexNk5kLdOjxBiF2dw6MHSC47IfKSlwbOUt3oS2Hy86PEQW7 YrGjYRrxKQutAsV4mkiEhPHv2EZL+QB9ncBC8ZOaKNKo2IOjlMTCaXIChrbLkbyQg1Su vQLTeiv8DPH7/I5DHdYIDu7VUmG84V3hh5YHJg9mD71w2bk5ZtsMk7T4ZmLEvp1RNEj5 cjoJH/4iO5+eP7FLp7ugz35qM7Yqn/MzSbHkXa4ivPIT7QmXkI5+StDbbqwTiHAc5iaH xuhn/qsvUxjUNWWnAOJuApJtNRd0NO/gdIzk0LuQYpVZh8DimcKlTX2QyHQOTx5CyjrB QFDQ== 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 v12-v6si242361plo.170.2018.03.04.02.17.32; Sun, 04 Mar 2018 02:17:46 -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 S1752647AbeCDJ4O (ORCPT + 99 others); Sun, 4 Mar 2018 04:56:14 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:37835 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752026AbeCDJ4M (ORCPT ); Sun, 4 Mar 2018 04:56:12 -0500 Received: from [2001:b68:ff:12::131] (port=35068 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 1esQND-00054u-QJ; Sun, 04 Mar 2018 10:56:08 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id A6EFE24425; Sun, 4 Mar 2018 10:56:07 +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:06 +0100 Message-Id: <20180304095606.10386-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 flag 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: CHECK: Avoid CamelCase: CHECK: Avoid CamelCase: CHECK: Avoid CamelCase: CHECK: Avoid CamelCase: CHECK: Avoid CamelCase: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/pi433_if.c | 4 ++-- drivers/staging/pi433/rf69.c | 18 +++++++++--------- drivers/staging/pi433/rf69_enum.h | 18 +++++++++--------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index b1cbec876857..57db806ff5af 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -443,7 +443,7 @@ pi433_receive(void *data) return retval; /* now check RSSI, if low wait for getting high (RSSI interrupt) */ - while (!rf69_get_flag(dev->spi, rssiExceededThreshold)) { + while (!rf69_get_flag(dev->spi, rssi_exceeded_threshold)) { /* allow tx to interrupt us while waiting for high RSSI */ dev->interrupt_rx_allowed = true; wake_up_interruptible(&dev->tx_wait_queue); @@ -452,7 +452,7 @@ pi433_receive(void *data) dev_dbg(dev->dev, "rx: going to wait for high RSSI level"); retval = wait_event_interruptible(dev->rx_wait_queue, rf69_get_flag(dev->spi, - rssiExceededThreshold)); + rssi_exceeded_threshold)); if (retval) /* wait was interrupted */ goto abort; dev->interrupt_rx_allowed = false; diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 54d8105b5812..fc4919711477 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -545,21 +545,21 @@ int rf69_set_dio_mapping(struct spi_device *spi, u8 DIONumber, u8 value) bool rf69_get_flag(struct spi_device *spi, enum flag flag) { switch (flag) { - case modeSwitchCompleted: + case mode_switch_completed: return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_MODE_READY); - case readyToReceive: + case ready_to_receive: return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_RX_READY); - case readyToSend: + case ready_to_send: return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_TX_READY); - case pllLocked: + case pll_locked: return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_PLL_LOCK); - case rssiExceededThreshold: + case rssi_exceeded_threshold: return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_RSSI); case timeout: return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_TIMEOUT); case automode: return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_AUTOMODE); - case syncAddressMatch: + case sync_address_match: return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_SYNC_ADDRESS_MATCH); case fifo_full: return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_FIFO_FULL); @@ -571,13 +571,13 @@ bool rf69_get_flag(struct spi_device *spi, enum flag flag) return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_FIFO_LEVEL); case fifo_overrun: return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_FIFO_OVERRUN); - case packetSent: + case packet_sent: return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_PACKET_SENT); case payload_ready: return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_PAYLOAD_READY); - case crcOk: + case crc_ok: return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_CRC_OK); - case batteryLow: + case battery_low: return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_LOW_BAT); default: return false; } diff --git a/drivers/staging/pi433/rf69_enum.h b/drivers/staging/pi433/rf69_enum.h index 682b667bf342..81287ce6be35 100644 --- a/drivers/staging/pi433/rf69_enum.h +++ b/drivers/staging/pi433/rf69_enum.h @@ -94,23 +94,23 @@ enum threshold_decrement { }; enum flag { - modeSwitchCompleted, - readyToReceive, - readyToSend, - pllLocked, - rssiExceededThreshold, + mode_switch_completed, + ready_to_receive, + ready_to_send, + pll_locked, + rssi_exceeded_threshold, timeout, automode, - syncAddressMatch, + sync_address_match, fifo_full, // fifo_not_empty, collision with next enum; replaced by following enum... fifo_empty, fifo_level_below_threshold, fifo_overrun, - packetSent, + packet_sent, payload_ready, - crcOk, - batteryLow + crc_ok, + battery_low }; enum fifo_fill_condition { -- 2.16.1