linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: kushwaha.a@samsung.com
Cc: "knaack.h@gmx.de" <knaack.h@gmx.de>,
	"lars@metafoo.de" <lars@metafoo.de>,
	"pmeerw@pmeerw.net" <pmeerw@pmeerw.net>,
	"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: [PATCH] staging: iio: replace symbolic permission
Date: Sat, 3 Dec 2016 10:26:36 +0000	[thread overview]
Message-ID: <ee3b57ac-ff90-4cfd-dbdb-5d7067e114d5@kernel.org> (raw)
In-Reply-To: <20161130152410epcms5p156ead39cb7b0dd842448360a87fbc0e7@epcms5p1>

On 30/11/16 15:24, Amit Kumar Kushwaha wrote:
> This patch fixes the following checkpatch.pl warning in ad7150.c
> WARNING: Symbolic permissions 'S_IRUGO | S_IWUSR' are not preferred
> Occured during build.
> 
> Signed-off-by: Amit Kushwaha <kushwaha.a@samsung.com>
I'm not overly fussed about these (and generally believe the churn isn't
worth the 'really minor' improvement in readability...)

Also for some reason it didn't apply.  I've done it manually...
Anyhow, applied to the togreg branch of iio.git just so I don't get any
more emails about it...

Jonathan
> ---
>  drivers/staging/iio/cdc/ad7150.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/iio/cdc/ad7150.c b/drivers/staging/iio/cdc/ad7150.c
> index 5578a07..9ab00c0 100644
> --- a/drivers/staging/iio/cdc/ad7150.c
> +++ b/drivers/staging/iio/cdc/ad7150.c
> @@ -414,7 +414,7 @@ static ssize_t ad7150_store_timeout(struct device *dev,
>  
>  #define AD7150_TIMEOUT(chan, type, dir, ev_type, ev_dir)		\
>  	IIO_DEVICE_ATTR(in_capacitance##chan##_##type##_##dir##_timeout, \
> -		S_IRUGO | S_IWUSR,					\
> +		0644,					\
>  		&ad7150_show_timeout,					\
>  		&ad7150_store_timeout,					\
>  		IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE,			\
> 


      reply	other threads:[~2016-12-03 14:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20161130152410epcms5p156ead39cb7b0dd842448360a87fbc0e7@epcms5p1>
2016-11-30 15:24 ` [PATCH] staging: iio: replace symbolic permission Amit Kumar Kushwaha
2016-12-03 10:26   ` Jonathan Cameron [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=ee3b57ac-ff90-4cfd-dbdb-5d7067e114d5@kernel.org \
    --to=jic23@kernel.org \
    --cc=knaack.h@gmx.de \
    --cc=kushwaha.a@samsung.com \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).