Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3434435ybp; Sun, 6 Oct 2019 11:51:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrtS5YIvkv9fAbW1VmxhC5MtLfyAKWwmRO/Z2xF3+LbL2ZHpUa7kuUOHsZMDvxsrSmQKo3 X-Received: by 2002:aa7:d718:: with SMTP id t24mr25166607edq.300.1570387864000; Sun, 06 Oct 2019 11:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570387863; cv=none; d=google.com; s=arc-20160816; b=oghvLIpZI2myCNYgbVkdsl/xHr3Tn9XViFnHAJFEsUrdXiJG4o8Ur0fznJ5JmhSctz BumPcYdRwtrcRRifL4/O34fBq0OUlvdLygUQQMb4Kb4FcuTMzxLMjN5/MVRtIE7Ghtdr VSOh58DogTx/3PRK/QHVu/RX+S12T8Ss8PsafW4/Oyljup/a7KqR9vEdXZhuSmNVqvic 4ct/OSsE9wntFbe5KreVg1kJGGiiPeFeUHv5dckG+yIarRbVAy+I2Cgy6hZTsZLFV4P7 QFETWWFDVeZhhgP2Sr1qSyeCFcNXHUX8VdVnVSSVD9G/+6QKHOyV9h97nTMS0r4f0A+M eD1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7Ryt44dYF+Okzl6PcwuHu8tX6xIio9b6pLvqbXSxoGw=; b=J5s+NNtNpCrwlgl7NAvRGVvbHbBTaQMIZ7blNRJj6ig0u4IoDcG6HYGt9nen/cDyxv /xZui4C5RCslYHpIRJarHApZfXcGASrac6j7WkDTpKg7uvTJ4w0JxEjlZZKRRTrJURTp GWNq00d3APPvoMWtaKsshfGrbDEwHp9W09XKHFYxIFwEFDX0Kn6MRIIV3/kG7wtYMu02 GWxBwUi0cYUB3parFALOv5RktJ0hRKabfgRS61xFCMDeMgC/wOs45zbBoquL0NQA0YvC vFki2gbXtEzhksyDgKTBM+6KEGIgNUTo0990v55aywk9mhu6bWLO+Qvh+6iQ1P4TMD5A loyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IUMJUuDS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si7060575edy.426.2019.10.06.11.50.39; Sun, 06 Oct 2019 11:51:03 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IUMJUuDS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726150AbfJFSso (ORCPT + 99 others); Sun, 6 Oct 2019 14:48:44 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41269 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725811AbfJFSso (ORCPT ); Sun, 6 Oct 2019 14:48:44 -0400 Received: by mail-wr1-f67.google.com with SMTP id q9so12659236wrm.8 for ; Sun, 06 Oct 2019 11:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7Ryt44dYF+Okzl6PcwuHu8tX6xIio9b6pLvqbXSxoGw=; b=IUMJUuDSyGC30dYtWcqFZg0pw9BmW0YroviA+PkfOUjpUqkXlTZf2vIVVdoizOTW7V wzob5JK8fY1kNAJ68SVj5tqVoP75rcrjuOK4ds/K5OM4bokrur8UbAUIm4cNB6h7QMrQ 41WWskkUWLDuZtF6Hq7jzTyWcuFBMIIQsq2dPzxO4n/IVtiLGHO+Q6RAZV2Ae1Qu8H2f f7EMyUZ2bf/JKN6gjZI/iBahHCLcSwp3lVgihL5CUptJ5YY9sDgqsE7S1BnvwREIv95U Lq3u98GiNKtIFr+wJZncX4/zPMZVqECmE4zTig8t5Wnry35aIYLbBL2nM+QrQmdEfVVs c3UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7Ryt44dYF+Okzl6PcwuHu8tX6xIio9b6pLvqbXSxoGw=; b=h1A7/tbxinmp+6GyOBfgvkzKGpkXkItWVVpSkmoEcU42sr5iT9fxk24zwM6qQV2BkK NMK7/NDZywQ28yHtiLkkX/BaupKrABo4XTmWKXsjFooR5tl/WAK5v2lqyyUBzqQBP1n5 CNYXhsfjnFF5AoqLgN3VhxjH2MPjVBQ9BAQxFHHcT+AFv1Dgx55SCluvlWt3Ch094LNj Dx19WbOusDQJdmb51kGgYOYE2CfNV9mMSdojdGx8vKKoZxfJadUgFZMio5ZDYs+pAMqz RQXbLka91uKN1t0nubP8S0v+dKJtTq/i11pUsJbN7C49WVxbj6F9WBtuSWjo6P6iT5Sr +SjQ== X-Gm-Message-State: APjAAAVng6GSheOXiuWd0EU7f2ANdIVBN5kprIlqhD+/eC9RG47gyp9c p05/0JvefV2mn11wu2ZkMKcgFpElULi8 X-Received: by 2002:a05:6000:1632:: with SMTP id v18mr20634231wrb.61.1570387722052; Sun, 06 Oct 2019 11:48:42 -0700 (PDT) Received: from ninjahub.lan (host-92-15-175-166.as43234.net. [92.15.175.166]) by smtp.googlemail.com with ESMTPSA id a3sm23689372wmc.3.2019.10.06.11.48.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Oct 2019 11:48:41 -0700 (PDT) From: Jules Irenge To: outreachy-kernel@googlegroups.com Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, olsonse@umich.edu, hsweeten@visionengravers.com, abbotti@mev.co.uk, Jules Irenge Subject: [PATCH] staging: comedi: Capitalize macro name to fix camelcase checkpatch warning Date: Sun, 6 Oct 2019 19:48:27 +0100 Message-Id: <20191006184827.12021-1-jbi.octave@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Capitalize RANGE_mA to fix camelcase check warning. Issue reported by checkpatch.pl Signed-off-by: Jules Irenge --- drivers/staging/comedi/comedidev.h | 2 +- drivers/staging/comedi/drivers/adv_pci1724.c | 4 ++-- drivers/staging/comedi/drivers/dac02.c | 2 +- drivers/staging/comedi/range.c | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h index 54c091866777..2fc536db203c 100644 --- a/drivers/staging/comedi/comedidev.h +++ b/drivers/staging/comedi/comedidev.h @@ -603,7 +603,7 @@ int comedi_check_chanlist(struct comedi_subdevice *s, #define RANGE(a, b) {(a) * 1e6, (b) * 1e6, 0} #define RANGE_ext(a, b) {(a) * 1e6, (b) * 1e6, RF_EXTERNAL} -#define RANGE_mA(a, b) {(a) * 1e6, (b) * 1e6, UNIT_MA} +#define RANGE_MA(a, b) {(a) * 1e6, (b) * 1e6, UNIT_MA} #define RANGE_unitless(a, b) {(a) * 1e6, (b) * 1e6, 0} #define BIP_RANGE(a) {-(a) * 1e6, (a) * 1e6, 0} #define UNI_RANGE(a) {0, (a) * 1e6, 0} diff --git a/drivers/staging/comedi/drivers/adv_pci1724.c b/drivers/staging/comedi/drivers/adv_pci1724.c index e8ab573c839f..f20d710c19d3 100644 --- a/drivers/staging/comedi/drivers/adv_pci1724.c +++ b/drivers/staging/comedi/drivers/adv_pci1724.c @@ -64,8 +64,8 @@ static const struct comedi_lrange adv_pci1724_ao_ranges = { 4, { BIP_RANGE(10), - RANGE_mA(0, 20), - RANGE_mA(4, 20), + RANGE_MA(0, 20), + RANGE_MA(4, 20), RANGE_unitless(0, 1) } }; diff --git a/drivers/staging/comedi/drivers/dac02.c b/drivers/staging/comedi/drivers/dac02.c index 5ef8114c2c85..4503cbdf673c 100644 --- a/drivers/staging/comedi/drivers/dac02.c +++ b/drivers/staging/comedi/drivers/dac02.c @@ -54,7 +54,7 @@ static const struct comedi_lrange das02_ao_ranges = { UNI_RANGE(10), BIP_RANGE(5), BIP_RANGE(10), - RANGE_mA(4, 20), + RANGE_MA(4, 20), RANGE_ext(0, 1) } }; diff --git a/drivers/staging/comedi/range.c b/drivers/staging/comedi/range.c index 89d599877445..dacdd7b6f1a0 100644 --- a/drivers/staging/comedi/range.c +++ b/drivers/staging/comedi/range.c @@ -23,11 +23,11 @@ const struct comedi_lrange range_unipolar5 = { 1, {UNI_RANGE(5)} }; EXPORT_SYMBOL_GPL(range_unipolar5); const struct comedi_lrange range_unipolar2_5 = { 1, {UNI_RANGE(2.5)} }; EXPORT_SYMBOL_GPL(range_unipolar2_5); -const struct comedi_lrange range_0_20mA = { 1, {RANGE_mA(0, 20)} }; +const struct comedi_lrange range_0_20mA = { 1, {RANGE_MA(0, 20)} }; EXPORT_SYMBOL_GPL(range_0_20mA); -const struct comedi_lrange range_4_20mA = { 1, {RANGE_mA(4, 20)} }; +const struct comedi_lrange range_4_20mA = { 1, {RANGE_MA(4, 20)} }; EXPORT_SYMBOL_GPL(range_4_20mA); -const struct comedi_lrange range_0_32mA = { 1, {RANGE_mA(0, 32)} }; +const struct comedi_lrange range_0_32mA = { 1, {RANGE_MA(0, 32)} }; EXPORT_SYMBOL_GPL(range_0_32mA); const struct comedi_lrange range_unknown = { 1, {{0, 1000000, UNIT_none} } }; EXPORT_SYMBOL_GPL(range_unknown); -- 2.21.0