linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: "Julián de Gortari" <kiototeko@gmail.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH] Staging: iio: adc: fix symbolic permissions coding style issue
Date: Sat, 28 Jan 2017 12:22:24 +0000	[thread overview]
Message-ID: <87c48e6c-dbfb-088b-d200-10fda3818c7c@kernel.org> (raw)
In-Reply-To: <1485194909-12453-1-git-send-email-kiototeko@gmail.com>

On 23/01/17 18:08, Julián de Gortari wrote:
> Octal permissions should be used instead of symbolic ones for easier
> reading.
> 
> Signed-off-by: Julián de Gortari <kiototeko@gmail.com>
While I find it exceptionally hard to care about this one, the driver in question
doesn't seem to be undergoing much churn so I've applied this. This all came
from a somewhat throw away comment Linus made rather than anyone caring that
strongly about it.  He was more saying he disliked patches going the other way
than anything else.  Anyhow, no way you would necessarily know this and it's
a nicely presented patch.  Please do put the name of the driver in the
title though - I've fixed up whilst applying.

Applied to the togreg branch of iio.git and pushed out as testing for the
autobuilders to play with it.

Thanks,

Jonathan
> ---
>  drivers/staging/iio/adc/ad7816.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/staging/iio/adc/ad7816.c b/drivers/staging/iio/adc/ad7816.c
> index 72551f8..17d2805 100644
> --- a/drivers/staging/iio/adc/ad7816.c
> +++ b/drivers/staging/iio/adc/ad7816.c
> @@ -139,7 +139,7 @@ static ssize_t ad7816_store_mode(struct device *dev,
>  	return len;
>  }
>  
> -static IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
> +static IIO_DEVICE_ATTR(mode, 0644,
>  		ad7816_show_mode,
>  		ad7816_store_mode,
>  		0);
> @@ -151,7 +151,7 @@ static ssize_t ad7816_show_available_modes(struct device *dev,
>  	return sprintf(buf, "full\npower-save\n");
>  }
>  
> -static IIO_DEVICE_ATTR(available_modes, S_IRUGO, ad7816_show_available_modes,
> +static IIO_DEVICE_ATTR(available_modes, 0444, ad7816_show_available_modes,
>  			NULL, 0);
>  
>  static ssize_t ad7816_show_channel(struct device *dev,
> @@ -197,7 +197,7 @@ static ssize_t ad7816_store_channel(struct device *dev,
>  	return len;
>  }
>  
> -static IIO_DEVICE_ATTR(channel, S_IRUGO | S_IWUSR,
> +static IIO_DEVICE_ATTR(channel, 0644,
>  		ad7816_show_channel,
>  		ad7816_store_channel,
>  		0);
> @@ -228,7 +228,7 @@ static ssize_t ad7816_show_value(struct device *dev,
>  	return sprintf(buf, "%u\n", data);
>  }
>  
> -static IIO_DEVICE_ATTR(value, S_IRUGO, ad7816_show_value, NULL, 0);
> +static IIO_DEVICE_ATTR(value, 0444, ad7816_show_value, NULL, 0);
>  
>  static struct attribute *ad7816_attributes[] = {
>  	&iio_dev_attr_available_modes.dev_attr.attr,
> @@ -319,7 +319,7 @@ static inline ssize_t ad7816_set_oti(struct device *dev,
>  	return len;
>  }
>  
> -static IIO_DEVICE_ATTR(oti, S_IRUGO | S_IWUSR,
> +static IIO_DEVICE_ATTR(oti, 0644,
>  		       ad7816_show_oti, ad7816_set_oti, 0);
>  
>  static struct attribute *ad7816_event_attributes[] = {
> 


      reply	other threads:[~2017-01-28 12:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-23 18:08 [PATCH] Staging: iio: adc: fix symbolic permissions coding style issue Julián de Gortari
2017-01-28 12:22 ` 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=87c48e6c-dbfb-088b-d200-10fda3818c7c@kernel.org \
    --to=jic23@kernel.org \
    --cc=kiototeko@gmail.com \
    --cc=linux-iio@vger.kernel.org \
    /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).