Staging: iio: cdc: ad7152.c, use octal permissions instead of symbolic
authorMiguel Robles <miguel.robles@farole.net>
Tue, 14 Mar 2017 15:52:43 +0000 (16:52 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 15 Mar 2017 22:01:19 +0000 (22:01 +0000)
Fix checkpatch warnings:
Symbolic permissions are not preferred. Consider using octal permissions.

Signed-off-by: Miguel Robles <miguel.robles@farole.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/cdc/ad7152.c

index 59ef93c66e749becf60cbc8e329e09b5824db54e..ce0dce85929be25ff49e8e80999c472955980276 100644 (file)
@@ -155,13 +155,13 @@ static ssize_t ad7152_start_gain_calib(struct device *dev,
 }
 
 static IIO_DEVICE_ATTR(in_capacitance0_calibbias_calibration,
-                      S_IWUSR, NULL, ad7152_start_offset_calib, 0);
+                      0200, NULL, ad7152_start_offset_calib, 0);
 static IIO_DEVICE_ATTR(in_capacitance1_calibbias_calibration,
-                      S_IWUSR, NULL, ad7152_start_offset_calib, 1);
+                      0200, NULL, ad7152_start_offset_calib, 1);
 static IIO_DEVICE_ATTR(in_capacitance0_calibscale_calibration,
-                      S_IWUSR, NULL, ad7152_start_gain_calib, 0);
+                      0200, NULL, ad7152_start_gain_calib, 0);
 static IIO_DEVICE_ATTR(in_capacitance1_calibscale_calibration,
-                      S_IWUSR, NULL, ad7152_start_gain_calib, 1);
+                      0200, NULL, ad7152_start_gain_calib, 1);
 
 /* Values are Update Rate (Hz), Conversion Time (ms) + 1*/
 static const unsigned char ad7152_filter_rate_table[][2] = {