diff options
| author | Chen Guanqiao <chen.chenchacha@foxmail.com> | 2017-04-09 00:30:26 -0400 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2017-04-14 10:09:05 -0400 |
| commit | d97a913206379fe978a20a127ec76aaafbf65ef1 (patch) | |
| tree | 9c7a66680b7abee0367cc064f78f1cf311b08690 | |
| parent | 2a830a45ffb05d1aa8d7866235501f635678bec6 (diff) | |
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: Chen Guanqiao <chen.chenchacha@foxmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
| -rw-r--r-- | drivers/staging/iio/meter/ade7759.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/staging/iio/meter/ade7759.c b/drivers/staging/iio/meter/ade7759.c index 0b65f1847510..68405046dae3 100644 --- a/drivers/staging/iio/meter/ade7759.c +++ b/drivers/staging/iio/meter/ade7759.c | |||
| @@ -279,41 +279,41 @@ static int ade7759_reset(struct device *dev) | |||
| 279 | } | 279 | } |
| 280 | 280 | ||
| 281 | static IIO_DEV_ATTR_AENERGY(ade7759_read_40bit, ADE7759_AENERGY); | 281 | static IIO_DEV_ATTR_AENERGY(ade7759_read_40bit, ADE7759_AENERGY); |
| 282 | static IIO_DEV_ATTR_CFDEN(S_IWUSR | S_IRUGO, | 282 | static IIO_DEV_ATTR_CFDEN(0644, |
| 283 | ade7759_read_16bit, | 283 | ade7759_read_16bit, |
| 284 | ade7759_write_16bit, | 284 | ade7759_write_16bit, |
| 285 | ADE7759_CFDEN); | 285 | ADE7759_CFDEN); |
| 286 | static IIO_DEV_ATTR_CFNUM(S_IWUSR | S_IRUGO, | 286 | static IIO_DEV_ATTR_CFNUM(0644, |
| 287 | ade7759_read_8bit, | 287 | ade7759_read_8bit, |
| 288 | ade7759_write_8bit, | 288 | ade7759_write_8bit, |
| 289 | ADE7759_CFNUM); | 289 | ADE7759_CFNUM); |
| 290 | static IIO_DEV_ATTR_CHKSUM(ade7759_read_8bit, ADE7759_CHKSUM); | 290 | static IIO_DEV_ATTR_CHKSUM(ade7759_read_8bit, ADE7759_CHKSUM); |
| 291 | static IIO_DEV_ATTR_PHCAL(S_IWUSR | S_IRUGO, | 291 | static IIO_DEV_ATTR_PHCAL(0644, |
| 292 | ade7759_read_16bit, | 292 | ade7759_read_16bit, |
| 293 | ade7759_write_16bit, | 293 | ade7759_write_16bit, |
| 294 | ADE7759_PHCAL); | 294 | ADE7759_PHCAL); |
| 295 | static IIO_DEV_ATTR_APOS(S_IWUSR | S_IRUGO, | 295 | static IIO_DEV_ATTR_APOS(0644, |
| 296 | ade7759_read_16bit, | 296 | ade7759_read_16bit, |
| 297 | ade7759_write_16bit, | 297 | ade7759_write_16bit, |
| 298 | ADE7759_APOS); | 298 | ADE7759_APOS); |
| 299 | static IIO_DEV_ATTR_SAGCYC(S_IWUSR | S_IRUGO, | 299 | static IIO_DEV_ATTR_SAGCYC(0644, |
| 300 | ade7759_read_8bit, | 300 | ade7759_read_8bit, |
| 301 | ade7759_write_8bit, | 301 | ade7759_write_8bit, |
| 302 | ADE7759_SAGCYC); | 302 | ADE7759_SAGCYC); |
| 303 | static IIO_DEV_ATTR_SAGLVL(S_IWUSR | S_IRUGO, | 303 | static IIO_DEV_ATTR_SAGLVL(0644, |
| 304 | ade7759_read_8bit, | 304 | ade7759_read_8bit, |
| 305 | ade7759_write_8bit, | 305 | ade7759_write_8bit, |
| 306 | ADE7759_SAGLVL); | 306 | ADE7759_SAGLVL); |
| 307 | static IIO_DEV_ATTR_LINECYC(S_IWUSR | S_IRUGO, | 307 | static IIO_DEV_ATTR_LINECYC(0644, |
| 308 | ade7759_read_8bit, | 308 | ade7759_read_8bit, |
| 309 | ade7759_write_8bit, | 309 | ade7759_write_8bit, |
| 310 | ADE7759_LINECYC); | 310 | ADE7759_LINECYC); |
| 311 | static IIO_DEV_ATTR_LENERGY(ade7759_read_40bit, ADE7759_LENERGY); | 311 | static IIO_DEV_ATTR_LENERGY(ade7759_read_40bit, ADE7759_LENERGY); |
| 312 | static IIO_DEV_ATTR_PGA_GAIN(S_IWUSR | S_IRUGO, | 312 | static IIO_DEV_ATTR_PGA_GAIN(0644, |
| 313 | ade7759_read_8bit, | 313 | ade7759_read_8bit, |
| 314 | ade7759_write_8bit, | 314 | ade7759_write_8bit, |
| 315 | ADE7759_GAIN); | 315 | ADE7759_GAIN); |
| 316 | static IIO_DEV_ATTR_ACTIVE_POWER_GAIN(S_IWUSR | S_IRUGO, | 316 | static IIO_DEV_ATTR_ACTIVE_POWER_GAIN(0644, |
| 317 | ade7759_read_16bit, | 317 | ade7759_read_16bit, |
| 318 | ade7759_write_16bit, | 318 | ade7759_write_16bit, |
| 319 | ADE7759_APGAIN); | 319 | ADE7759_APGAIN); |
| @@ -458,7 +458,7 @@ static IIO_DEV_ATTR_TEMP_RAW(ade7759_read_8bit); | |||
| 458 | static IIO_CONST_ATTR(in_temp_offset, "70 C"); | 458 | static IIO_CONST_ATTR(in_temp_offset, "70 C"); |
| 459 | static IIO_CONST_ATTR(in_temp_scale, "1 C"); | 459 | static IIO_CONST_ATTR(in_temp_scale, "1 C"); |
| 460 | 460 | ||
| 461 | static IIO_DEV_ATTR_SAMP_FREQ(S_IWUSR | S_IRUGO, | 461 | static IIO_DEV_ATTR_SAMP_FREQ(0644, |
| 462 | ade7759_read_frequency, | 462 | ade7759_read_frequency, |
| 463 | ade7759_write_frequency); | 463 | ade7759_write_frequency); |
| 464 | 464 | ||
