Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1645363

Re: [PATCH v2] staging: iio: light: Replace symbolic permissions as per coding style

From Greg KH <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2] staging: iio: light: Replace symbolic permissions as per coding style
Date 2017-05-19 10:30 +0200
Message-ID <tILsn-7S6-55@gated-at.bofh.it> (permalink)
References <tIpBw-8eh-31@gated-at.bofh.it> <tILiF-7O7-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, May 19, 2017 at 01:42:55PM +0530, surenderpolsani@gmail.com wrote:
> -static DEVICE_ATTR(power_state, S_IRUGO | S_IWUSR,
> -		tsl2x7x_power_state_show, tsl2x7x_power_state_store);
> +static DEVICE_ATTR_RW(tsl2x7x_power_state);

You do realize you just renamed the sysfs file, changing the user/kernel
api?  That's generally not a good thing to ever do :(

thanks,

greg k-h

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] staging: iio: light: Replace symbolic permissions as per coding style surenderpolsani@gmail.com - 2017-05-18 10:40 +0200
  Re: [PATCH] staging: iio: light: Replace symbolic permissions as per  coding style Greg KH <gregkh@linuxfoundation.org> - 2017-05-18 11:10 +0200
    [PATCH v2] staging: iio: light: Replace symbolic permissions as per coding style surenderpolsani@gmail.com - 2017-05-19 09:10 +0200
      Re: [PATCH v2] staging: iio: light: Replace symbolic permissions as  per coding style Greg KH <gregkh@linuxfoundation.org> - 2017-05-19 09:20 +0200
        Re: [PATCH v2] staging: iio: light: Replace symbolic permissions as  per coding style suri <surenderpolsani@gmail.com> - 2017-05-19 09:40 +0200
    [PATCH v2] staging: iio: light: Replace symbolic permissions as per coding style surenderpolsani@gmail.com - 2017-05-19 10:20 +0200
      Re: [PATCH v2] staging: iio: light: Replace symbolic permissions as  per coding style Greg KH <gregkh@linuxfoundation.org> - 2017-05-19 10:30 +0200
        [PATCH v3] staging: iio: light: Replace symbolic permissions as per coding style surenderpolsani@gmail.com - 2017-05-19 11:40 +0200
          Re: [PATCH v3] staging: iio: light: Replace symbolic permissions as  per coding style Jonathan Cameron <jic23@kernel.org> - 2017-05-20 20:00 +0200
            Re: [PATCH v3] staging: iio: light: Replace symbolic permissions as  per coding style Brian Masney <masneyb@onstation.org> - 2017-05-20 20:40 +0200
              Re: [PATCH v3] staging: iio: light: Replace symbolic permissions as  per coding style Jonathan Cameron <jic23@kernel.org> - 2017-05-21 13:00 +0200

csiph-web