提交 b4bac145 编写于 作者: C Chen Guanqiao 提交者: Jonathan Cameron

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: NChen Guanqiao <chen.chenchacha@foxmail.com>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 984fb244
...@@ -317,11 +317,11 @@ static IIO_DEV_ATTR_ACTIVE_POWER_GAIN(0644, ...@@ -317,11 +317,11 @@ static IIO_DEV_ATTR_ACTIVE_POWER_GAIN(0644,
ade7759_read_16bit, ade7759_read_16bit,
ade7759_write_16bit, ade7759_write_16bit,
ADE7759_APGAIN); 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_read_8bit,
ade7759_write_8bit, ade7759_write_8bit,
ADE7759_CH1OS); 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_read_8bit,
ade7759_write_8bit, ade7759_write_8bit,
ADE7759_CH2OS); ADE7759_CH2OS);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册