diff options
author | Chen Guanqiao <chen.chenchacha@foxmail.com> | 2017-04-09 18:21:00 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-04-14 17:09:07 +0300 |
commit | b4bac145b9d21200312287da09d2e29d1ff674e8 (patch) | |
tree | 9af855540285d516b4f99d8bb1758ec7c2f1f359 | |
parent | 984fb2443091d51e196662cdaddfe2823b2778ec (diff) | |
download | linux-b4bac145b9d21200312287da09d2e29d1ff674e8.tar.xz |
iio:meter:ade7759: Removing use of deprecated macros (S_IRUGO, S_IWUSR)
This fixes the coding style issue of using (S_IWUSR | S_IRUGO) in place of
4-digit octal numbers.
Signed-off-by: Chen Guanqiao <chen.chenchacha@foxmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/staging/iio/meter/ade7759.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/iio/meter/ade7759.c b/drivers/staging/iio/meter/ade7759.c index 68405046dae3..1691760339da 100644 --- a/drivers/staging/iio/meter/ade7759.c +++ b/drivers/staging/iio/meter/ade7759.c @@ -317,11 +317,11 @@ static IIO_DEV_ATTR_ACTIVE_POWER_GAIN(0644, ade7759_read_16bit, ade7759_write_16bit, ADE7759_APGAIN); -static IIO_DEV_ATTR_CH_OFF(1, S_IWUSR | S_IRUGO, +static IIO_DEV_ATTR_CH_OFF(1, 0644, ade7759_read_8bit, ade7759_write_8bit, ADE7759_CH1OS); -static IIO_DEV_ATTR_CH_OFF(2, S_IWUSR | S_IRUGO, +static IIO_DEV_ATTR_CH_OFF(2, 0644, ade7759_read_8bit, ade7759_write_8bit, ADE7759_CH2OS); |