Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5130465imm; Tue, 16 Oct 2018 05:46:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV61sxrE5ou33Qhp4A6+CWHHlJvR8EmuSev6kXYSlmRdKHZEqMVg6XfJWS2Uq+YBswJ0Ia38j X-Received: by 2002:a63:dc14:: with SMTP id s20-v6mr20296094pgg.398.1539693970194; Tue, 16 Oct 2018 05:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539693970; cv=none; d=google.com; s=arc-20160816; b=b27MWcN3C0Rpv0ZOvLgLr/QnaeUSHh5qyB38FY6ollKF4LlzZxa6uHX6zOmiyHcng7 I3PENFM/ac0UHZrihDWaNItPTzRpmMdlGEQ+oeHZKWLa8NTD2JhgH8M4HXgKArjtP6Zd 07JF22vGERvkke8jNpVqE+PBkhzF9FwSVawnkep60NSs9VdEsaZjEQ/m2Atnqy2SfadR E38gGpuwW/YG1rm2B8yfvKxmt2p3A0x9VS39+AY0xdgFcFzqVbTKF+nfEPk6vSe9uNRf CEZu+4P5apIB14ogsR+3PthW3Zb2V+AAv6H05FZAuOrjowFQ67hg6TVbggupr9gafAwK xzWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=53G3jIaewNyix2sT8B4NyZbCJiytr2VwuelpVGz1FTg=; b=FufhSoT0aFBuhIHBqSjcZB/OPDtkcC0JrHkZ4FlEimJNA4NUpHd9opFua2q4b4iKYM 2Fp6wplKEzgAlEI0WKHtIkdV4shZgkUKIMGcNY/JKjnlxMQfTt6kSV0lVPjdxH2qZlxk PgNp+U9X8OXVUdPsD7gJszJRTtsYmS50D0KfVGKHTwzZqW5pxEFRtg7DmU/btk5wb372 2mF//niGKfFGXY5vCgtt+lpQIWpLUHipS6x1rEiNkoSkokIzHhqW4d+i9s1djWzBl52L 9tjeAoc+rxeBd6xiwHkFsJsE4/vmHiqfp5y7Yey97FgYwg+v/QFgf6Ew4jKP1gIHNYTz m0lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="JL9nF9M/"; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22-v6si12725352pgb.472.2018.10.16.05.45.53; Tue, 16 Oct 2018 05:46:10 -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=@oracle.com header.s=corp-2018-07-02 header.b="JL9nF9M/"; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727032AbeJPUft (ORCPT + 99 others); Tue, 16 Oct 2018 16:35:49 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:40252 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbeJPUft (ORCPT ); Tue, 16 Oct 2018 16:35:49 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9GChoMq112206; Tue, 16 Oct 2018 12:44:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=53G3jIaewNyix2sT8B4NyZbCJiytr2VwuelpVGz1FTg=; b=JL9nF9M/B3jB371z29Jb+P+yWjW+AyeIPtQU7y1YegtnNjyWrcHp2zEGzQ9r8R1plLDT S+McWHKENkRaz1ffin+XsCjTcEogGRtDPK2PpHH9R+nmG3Q64Nw5BdnAzW4ftTrQxnQc qi2H6rPjBHEGHhcvFN3h+iesWxretL/zf7ZLoej+SYVKw7+YlAjo9PC/kJsbAwzYwqda m0O8U5xpGy+Du5aFfvwjWhxA7TZ3ea21GMUr96CaaWCSI8cViJax0N0d4HfP7K6YIe4N rXrcbylzbMAkxXspze1IVQW4hJvVvWIzlgqOu3hlkQQ6c7es6UGlo28KCnRw6fk9fi1i NA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2n384u0hbs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Oct 2018 12:44:19 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w9GCiJUB021843 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Oct 2018 12:44:19 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9GCiGj0014203; Tue, 16 Oct 2018 12:44:16 GMT Received: from mwanda (/129.205.6.86) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 16 Oct 2018 05:44:15 -0700 Date: Tue, 16 Oct 2018 15:44:04 +0300 From: Dan Carpenter To: Gabriel Capella Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com Subject: Re: [PATCH] staging: iio: adc: Add comments to prevent checks corrections Message-ID: <20181016124404.fyzau4pd7wq6r7js@mwanda> References: <20181015212521.GA24512@mantaray> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181015212521.GA24512@mantaray> User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9047 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=985 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810160109 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 15, 2018 at 06:25:21PM -0300, Gabriel Capella wrote: > 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); No one will read that... :( It has to be on the same line. regards, dan carpenter