Commit d97a9132 authored by Chen Guanqiao's avatar Chen Guanqiao Committed by Jonathan Cameron

iio:meter:ade7759: Removing use of deprecated macros (S_IRUGO, S_IWUSR, S_IXUGO)

Removing use of deprecated macros(S_IRUGO, S_IWUSR, S_IXUGO), and replace
with 4 digit octal.
Signed-off-by: default avatarChen Guanqiao <chen.chenchacha@foxmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 2a830a45
...@@ -279,41 +279,41 @@ static int ade7759_reset(struct device *dev) ...@@ -279,41 +279,41 @@ static int ade7759_reset(struct device *dev)
} }
static IIO_DEV_ATTR_AENERGY(ade7759_read_40bit, ADE7759_AENERGY); static IIO_DEV_ATTR_AENERGY(ade7759_read_40bit, ADE7759_AENERGY);
static IIO_DEV_ATTR_CFDEN(S_IWUSR | S_IRUGO, static IIO_DEV_ATTR_CFDEN(0644,
ade7759_read_16bit, ade7759_read_16bit,
ade7759_write_16bit, ade7759_write_16bit,
ADE7759_CFDEN); ADE7759_CFDEN);
static IIO_DEV_ATTR_CFNUM(S_IWUSR | S_IRUGO, static IIO_DEV_ATTR_CFNUM(0644,
ade7759_read_8bit, ade7759_read_8bit,
ade7759_write_8bit, ade7759_write_8bit,
ADE7759_CFNUM); ADE7759_CFNUM);
static IIO_DEV_ATTR_CHKSUM(ade7759_read_8bit, ADE7759_CHKSUM); static IIO_DEV_ATTR_CHKSUM(ade7759_read_8bit, ADE7759_CHKSUM);
static IIO_DEV_ATTR_PHCAL(S_IWUSR | S_IRUGO, static IIO_DEV_ATTR_PHCAL(0644,
ade7759_read_16bit, ade7759_read_16bit,
ade7759_write_16bit, ade7759_write_16bit,
ADE7759_PHCAL); ADE7759_PHCAL);
static IIO_DEV_ATTR_APOS(S_IWUSR | S_IRUGO, static IIO_DEV_ATTR_APOS(0644,
ade7759_read_16bit, ade7759_read_16bit,
ade7759_write_16bit, ade7759_write_16bit,
ADE7759_APOS); ADE7759_APOS);
static IIO_DEV_ATTR_SAGCYC(S_IWUSR | S_IRUGO, static IIO_DEV_ATTR_SAGCYC(0644,
ade7759_read_8bit, ade7759_read_8bit,
ade7759_write_8bit, ade7759_write_8bit,
ADE7759_SAGCYC); ADE7759_SAGCYC);
static IIO_DEV_ATTR_SAGLVL(S_IWUSR | S_IRUGO, static IIO_DEV_ATTR_SAGLVL(0644,
ade7759_read_8bit, ade7759_read_8bit,
ade7759_write_8bit, ade7759_write_8bit,
ADE7759_SAGLVL); ADE7759_SAGLVL);
static IIO_DEV_ATTR_LINECYC(S_IWUSR | S_IRUGO, static IIO_DEV_ATTR_LINECYC(0644,
ade7759_read_8bit, ade7759_read_8bit,
ade7759_write_8bit, ade7759_write_8bit,
ADE7759_LINECYC); ADE7759_LINECYC);
static IIO_DEV_ATTR_LENERGY(ade7759_read_40bit, ADE7759_LENERGY); static IIO_DEV_ATTR_LENERGY(ade7759_read_40bit, ADE7759_LENERGY);
static IIO_DEV_ATTR_PGA_GAIN(S_IWUSR | S_IRUGO, static IIO_DEV_ATTR_PGA_GAIN(0644,
ade7759_read_8bit, ade7759_read_8bit,
ade7759_write_8bit, ade7759_write_8bit,
ADE7759_GAIN); ADE7759_GAIN);
static IIO_DEV_ATTR_ACTIVE_POWER_GAIN(S_IWUSR | S_IRUGO, static IIO_DEV_ATTR_ACTIVE_POWER_GAIN(0644,
ade7759_read_16bit, ade7759_read_16bit,
ade7759_write_16bit, ade7759_write_16bit,
ADE7759_APGAIN); ADE7759_APGAIN);
...@@ -458,7 +458,7 @@ static IIO_DEV_ATTR_TEMP_RAW(ade7759_read_8bit); ...@@ -458,7 +458,7 @@ static IIO_DEV_ATTR_TEMP_RAW(ade7759_read_8bit);
static IIO_CONST_ATTR(in_temp_offset, "70 C"); static IIO_CONST_ATTR(in_temp_offset, "70 C");
static IIO_CONST_ATTR(in_temp_scale, "1 C"); static IIO_CONST_ATTR(in_temp_scale, "1 C");
static IIO_DEV_ATTR_SAMP_FREQ(S_IWUSR | S_IRUGO, static IIO_DEV_ATTR_SAMP_FREQ(0644,
ade7759_read_frequency, ade7759_read_frequency,
ade7759_write_frequency); ade7759_write_frequency);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment