提交 67351df7 编写于 作者: A Amit Kumar Kushwaha 提交者: Jonathan Cameron

staging: iio: replace symbolic permission

This patch fixes the following checkpatch.pl warning in ad7150.c
WARNING: Symbolic permissions 'S_IRUGO | S_IWUSR' are not preferred
Occured during build.
Signed-off-by: NAmit Kushwaha <kushwaha.a@samsung.com>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 a96cd0f9
...@@ -414,7 +414,7 @@ static ssize_t ad7150_store_timeout(struct device *dev, ...@@ -414,7 +414,7 @@ static ssize_t ad7150_store_timeout(struct device *dev,
#define AD7150_TIMEOUT(chan, type, dir, ev_type, ev_dir) \ #define AD7150_TIMEOUT(chan, type, dir, ev_type, ev_dir) \
IIO_DEVICE_ATTR(in_capacitance##chan##_##type##_##dir##_timeout, \ IIO_DEVICE_ATTR(in_capacitance##chan##_##type##_##dir##_timeout, \
S_IRUGO | S_IWUSR, \ 0644, \
&ad7150_show_timeout, \ &ad7150_show_timeout, \
&ad7150_store_timeout, \ &ad7150_store_timeout, \
IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE, \ IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE, \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册