staging: iio: replace symbolic permission
authorAmit Kumar Kushwaha <kushwaha.a@samsung.com>
Wed, 30 Nov 2016 15:24:10 +0000 (15:24 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Dec 2016 10:26:13 +0000 (10:26 +0000)
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: Amit Kushwaha <kushwaha.a@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/cdc/ad7150.c

index 6998c3ddfb6ab71c5d51518775f4ec02c56ecbbb..148bd431138b6f7059da2c2fce4ffbe1773dc900 100644 (file)
@@ -414,7 +414,7 @@ error_ret:
 
 #define AD7150_TIMEOUT(chan, type, dir, ev_type, ev_dir)               \
        IIO_DEVICE_ATTR(in_capacitance##chan##_##type##_##dir##_timeout, \
-               S_IRUGO | S_IWUSR,                                      \
+               0644,                                                   \
                &ad7150_show_timeout,                                   \
                &ad7150_store_timeout,                                  \
                IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE,                   \