All of lore.kernel.org
 help / color / mirror / Atom feed
From: Katie Dunne <kdunne@mail.ccsf.edu>
To: outreachy-kernel <outreachy-kernel@googlegroups.com>
Subject: Re: [PATCH] Staging: iio: adc: Add space around '-'
Date: Fri, 16 Sep 2016 08:15:53 -0700	[thread overview]
Message-ID: <20160916151553.GA13367@katie-Inspiron-5748> (raw)
In-Reply-To: <f350e223-7d5a-493e-9f23-836a2af7f86d@googlegroups.com>

On Fri, Sep 16, 2016 at 08:08:51AM -0700, Katherine Dunne wrote:
> 
> 
> On Wednesday, September 14, 2016 at 4:01:57 AM UTC-7, Sandhya Bankar wrote:
> >
> > Add space around operator '-' . 
> > This patch is found by checkpatch.pl script . 
> > CHECK: spaces preferred around that '-' (ctx:VxV) . 

Hi Sandhya,

This is a false positive from checkpatch. To save you
some time here is the response from Jonathan:

"Just to explain a bit more.  Checkpatch is assuming that it is looking
at two parameters. It's not. That's a string being passed into the
macro.  It ultimately forms a file name in sysfs. 

p.s. We get patches for this from time to time ;(  Unfortunately
it's a somewhat obscure case for checkpatch."

Regards,
Katie

> > Signed-off-by: Sandhya Bankar <bankarsa...@gmail.com <javascript:>> 
> > --- 
> >  drivers/staging/iio/adc/ad7192.c | 2 +- 
> >  1 file changed, 1 insertion(+), 1 deletion(-) 
> >
> > diff --git a/drivers/staging/iio/adc/ad7192.c 
> > b/drivers/staging/iio/adc/ad7192.c 
> > index 1cf6b79..5688b29 100644 
> > --- a/drivers/staging/iio/adc/ad7192.c 
> > +++ b/drivers/staging/iio/adc/ad7192.c 
> > @@ -391,7 +391,7 @@ ad7192_show_scale_available(struct device *dev, 
> >  } 
> >   
> >  static IIO_DEVICE_ATTR_NAMED(in_v_m_v_scale_available, 
> > -                             in_voltage-voltage_scale_available, 
> > +                             in_voltage - voltage_scale_available, 
> >                               S_IRUGO, ad7192_show_scale_available, NULL, 
> > 0); 
> >   
> >  static IIO_DEVICE_ATTR(in_voltage_scale_available, S_IRUGO, 
> > -- 
> > 1.8.2.3 
> >
> >



      parent reply	other threads:[~2016-09-16 15:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-14 11:02 [PATCH] Staging: iio: adc: Add space around '-' Sandhya Bankar
2016-09-14 12:27 ` [Outreachy kernel] " Julia Lawall
2016-09-14 12:35   ` Sandhya Bankar
2016-09-14 12:36     ` Julia Lawall
     [not found] ` <f350e223-7d5a-493e-9f23-836a2af7f86d@googlegroups.com>
2016-09-16 15:15   ` Katie Dunne [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160916151553.GA13367@katie-Inspiron-5748 \
    --to=kdunne@mail.ccsf.edu \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.