Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4409929imm; Mon, 15 Oct 2018 14:26:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV61mZ2+gPbY/aBBslmNQGHrsJRuF5p/i9BdgvfUn7UfCI2tYemCwt0w8WtlBrJPQt/QQOn/w X-Received: by 2002:a63:6946:: with SMTP id e67-v6mr17467498pgc.119.1539638788734; Mon, 15 Oct 2018 14:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539638788; cv=none; d=google.com; s=arc-20160816; b=xTRs2InA7tWoXXXa8npTQB0jfugTYRM0dD4S3mPdjAVIWBCpg0lKJ9jb53KhNfX438 vpLYkUSbIe2JXm/5t89dkZg+8oUItL1uQqMDpsq0Hx/xa9Ax8moCi281D+ewVt8b4Yp2 ZQV/VFcPdepAIokNNduZDa++wj4Ok2diobApUJ6diKCOnCyH24YbPF/3LET12V9vUaxR iHQT918SCB1ZWBQoyOJgBagCEksnDvB9AK/mkMCK1FXHCw1cYJYSFZiHSVAnuPXJcNwH ZPaGYmkZOn30KR9NunQjBDVgQe/Ws4LaYjlNOQ0ZXzwmWXaQJFOR5YNN1SsOq47lyBoT IAHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=hQEEb1+TIVT56xFyAAdPNqT9LH77Lbs2CjpqQTLNZBw=; b=Opp6FMPeY0HvPcu0XRacny+HwpdgNFS44k1p7kKb0JIg2LOoyDloZ2TutEygUun6mc Aahcmj2oCmmUbsWmawD1TFrO+HHY15EE/b5fYykRToSqOEp8Y10ucFXzIz43ASfCdaOW 7m/LxhWCn/iKyWkSXEs12kzAyX7QmL20kE728BV4PL2A9o5IFQR5Jo/VVh8oCDTTZdrZ ejDFhAj8cmTRx7GKRJvBSqPbB97kprJuvMrc56Uf4i6FkbW71O6G85AW8Qt/ywmObD0k x9DvgAQf8vR2Zd78gnuK65JnncuYX2GTsLu5DAG5WmKteijpNsXmZ6cCRG19U/nBh4JN 9RXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="XqjkdS/B"; 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 j24-v6si10421064pff.42.2018.10.15.14.26.13; Mon, 15 Oct 2018 14:26:28 -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=fail header.i=@gmail.com header.s=20161025 header.b="XqjkdS/B"; 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 S1727027AbeJPFMO (ORCPT + 99 others); Tue, 16 Oct 2018 01:12:14 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:37125 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbeJPFMO (ORCPT ); Tue, 16 Oct 2018 01:12:14 -0400 Received: by mail-qt1-f196.google.com with SMTP id d14-v6so23276911qto.4; Mon, 15 Oct 2018 14:25:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=hQEEb1+TIVT56xFyAAdPNqT9LH77Lbs2CjpqQTLNZBw=; b=XqjkdS/BVWhkCNGkJ/wSNzH1zHMzBleykq94J9Z6FgzNC90WeaJfCc+sJH9optoZBV +519+AmDYPDABwfjuYqai4CEv5hZA/TXnRJzQgSvCH7lAfVXU7Q6O15oYT7N1+kBWQiV rhsN1ZaqZ2a66KCIRxEjMjcYwkzGuZKklw/KtWROb7mUSPaOlSIxtEchsoWzkBoqfo+G 80aky2QtEZOzVYp5ZC2PvHoC82sa9vUIirewpWXPQYkvreS39GnbT6QeXiq6qvmPMpYN Ez4LEm9jcJNVSlYNk0dILZvTpQg+Rql5fGgZ+VXfMxL8JQDE/X23DFu8iFSv2NB2dZWd Knmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mime-version:content-disposition:user-agent; bh=hQEEb1+TIVT56xFyAAdPNqT9LH77Lbs2CjpqQTLNZBw=; b=BVwtEeqHkHboBJGAqgT9x0nU/YpvxCrFqkZxNMFNMoBrKT6Rg3lu+rJ3TNljl3liCr W4W1kvGAmMjLAtvqGHttVNI+FfJk6dEFLciRQecrpbOJGIkUpR/CmQWsMiL94U2TD1ip HaZ+Zb9eqoBbnSz68EiZ9erU0WlTMCExhXjVg3Cm14wRKbw/c6ICJB7N9WnElSBTeZ6K ZoU6f6dW2iKI3Tu4BXZfGcupakM6QxyAbIWYjzrD7Cnbrpu9ZtswFIhvTZxEkxdv1tQ4 U2yPAgjr4iPNBGjOU8EFDc9qSMU6FP2n3/G4+Fhm0QwHCOL28xIqwrOQEUKXqwcEi1wB uxVA== X-Gm-Message-State: ABuFfohH9csmMNzAUesjZEkduyxuJtkcHPJUvm1IlEU4IJYVyYBSu8aP TgwTV8d+LMm95KP6MC+70kQ= X-Received: by 2002:ac8:7119:: with SMTP id z25-v6mr17917686qto.270.1539638712630; Mon, 15 Oct 2018 14:25:12 -0700 (PDT) Received: from localhost ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id z3-v6sm5958638qkl.23.2018.10.15.14.25.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 14:25:11 -0700 (PDT) Date: Mon, 15 Oct 2018 18:25:21 -0300 From: Gabriel Capella To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Greg Kroah-Hartman Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com Subject: [PATCH] staging: iio: adc: Add comments to prevent checks corrections Message-ID: <20181015212521.GA24512@mantaray> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds 3 comments in 2 different files. These comments warn to don't correct the checks of type: "CHECK: spaces preferred around that '-'" Signed-off-by: Gabriel Capella --- drivers/staging/iio/adc/ad7192.c | 1 + drivers/staging/iio/adc/ad7280a.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c index acdbc07fd259..786ace19c240 100644 --- a/drivers/staging/iio/adc/ad7192.c +++ b/drivers/staging/iio/adc/ad7192.c @@ -354,6 +354,7 @@ ad7192_show_scale_available(struct device *dev, return len; } +/* Do not put spaces around the hyphen. #checkpatch.pl */ static IIO_DEVICE_ATTR_NAMED(in_v_m_v_scale_available, in_voltage-voltage_scale_available, 0444, ad7192_show_scale_available, NULL, 0); diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c index 58420dcb406d..4927116a046c 100644 --- a/drivers/staging/iio/adc/ad7280a.c +++ b/drivers/staging/iio/adc/ad7280a.c @@ -749,6 +749,7 @@ static irqreturn_t ad7280_event_handler(int irq, void *private) return IRQ_HANDLED; } +/* Do not put spaces around the hyphen. #checkpatch.pl */ static IIO_DEVICE_ATTR_NAMED(in_thresh_low_value, in_voltage-voltage_thresh_low_value, 0644, @@ -756,6 +757,7 @@ static IIO_DEVICE_ATTR_NAMED(in_thresh_low_value, ad7280_write_channel_config, AD7280A_CELL_UNDERVOLTAGE); +/* Do not put spaces around the hyphen. #checkpatch.pl */ static IIO_DEVICE_ATTR_NAMED(in_thresh_high_value, in_voltage-voltage_thresh_high_value, 0644, --