From: Jonathan Cameron <jic23@kernel.org>
To: Mugilraj D <dmugil2000@gmail.com>
Cc: Hartmut Knaack <knaack.h@gmx.de>,
Lars-Peter Clausen <lars@metafoo.de>,
Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
Linus Walleij <linus.walleij@linaro.org>,
Jonathan Bakker <xc-racer2@live.ca>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iio: accel: Replace symbolic permissions with octal permissions
Date: Sun, 14 Jun 2020 14:27:15 +0100 [thread overview]
Message-ID: <20200614142715.02e737bb@archlinux> (raw)
In-Reply-To: <1592036351-10166-1-git-send-email-dmugil2000@gmail.com>
On Sat, 13 Jun 2020 13:49:01 +0530
Mugilraj D <dmugil2000@gmail.com> wrote:
> Resolve following checkpatch issue:
> WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider
> using octal permissions '0444'.
Hmm. I guess that's just about worth tidying up, but (see inline...)
Take into account that any change does have an impact on maintainability
of a driver, and generally no one will take white space changes to
drivers outside staging unless there is a good reason.
Jonathan
>
> Signed-off-by: Mugilraj D <dmugil2000@gmail.com>
> ---
> drivers/iio/accel/bma180.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/iio/accel/bma180.c b/drivers/iio/accel/bma180.c
> index 265722e..b716347 100644
> --- a/drivers/iio/accel/bma180.c
> +++ b/drivers/iio/accel/bma180.c
> @@ -531,14 +531,13 @@ static ssize_t bma180_show_scale_avail(struct device *dev,
> }
>
> static IIO_DEVICE_ATTR(in_accel_filter_low_pass_3db_frequency_available,
> - S_IRUGO, bma180_show_filter_freq_avail, NULL, 0);
> + 0444, bma180_show_filter_freq_avail, NULL, 0);
>
> static IIO_DEVICE_ATTR(in_accel_scale_available,
> - S_IRUGO, bma180_show_scale_avail, NULL, 0);
> + 0444, bma180_show_scale_avail, NULL, 0);
>
> static struct attribute *bma180_attributes[] = {
> - &iio_dev_attr_in_accel_filter_low_pass_3db_frequency_available.
> - dev_attr.attr,
> + &iio_dev_attr_in_accel_filter_low_pass_3db_frequency_available.dev_attr.attr,
This change is unrelated and basically just noise.
> &iio_dev_attr_in_accel_scale_available.dev_attr.attr,
> NULL,
> };
prev parent reply other threads:[~2020-06-14 13:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-13 8:19 [PATCH] iio: accel: Replace symbolic permissions with octal permissions Mugilraj D
2020-06-14 13:27 ` 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=20200614142715.02e737bb@archlinux \
--to=jic23@kernel.org \
--cc=dmugil2000@gmail.com \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linus.walleij@linaro.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
--cc=xc-racer2@live.ca \
/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).