Skip to contentSkip to conversation

staging: iio: adis16240_core: Replace symbolic permission with octal permission

PATCH In review sayli karnik 4 participants 4 messages Feb 17, 2017 – Feb 19, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: iio: adis16240_core: Replace symbolic permission with octal permission

The patch resolves following checkpatch issue:
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.

---
 drivers/staging/iio/accel/adis16240_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/accel/adis16240_core.c +1 -1
index d5b99e6..e1bc9fc 100644
@@ -65,7 +65,7 @@ static ssize_t adis16240_read_12bit_signed(struct device *dev,
 	return ret;
 }
 
-static IIO_DEVICE_ATTR(in_accel_xyz_squared_peak_raw, S_IRUGO,
+static IIO_DEVICE_ATTR(in_accel_xyz_squared_peak_raw, 0444,
 		       adis16240_read_12bit_signed, NULL,
 		       ADIS16240_XYZPEAK_OUT);
 
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 5 lines · sayli karnik

The patch resolves following checkpatch issue:
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.

Applied to the togreg branch of iio.git. Pushed out as testing initially to let the autobuilders play with it.

One request though, please post iio related patches to [email protected] even for drivers in staging. That way they are less likely to fall through the cracks!

Jonathan

Quoted 18 lines
---
 drivers/staging/iio/accel/adis16240_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/accel/adis16240_core.c +1 -1
index d5b99e6..e1bc9fc 100644
@@ -65,7 +65,7 @@ static ssize_t adis16240_read_12bit_signed(struct device *dev,
 	return ret;
 }
 
-static IIO_DEVICE_ATTR(in_accel_xyz_squared_peak_raw, S_IRUGO,
+static IIO_DEVICE_ATTR(in_accel_xyz_squared_peak_raw, 0444,
 		       adis16240_read_12bit_signed, NULL,
 		       ADIS16240_XYZPEAK_OUT);
 
#2 lore raw
Quoted 11 lines · Jonathan Cameron
Quoted 5 lines · sayli karnik

The patch resolves following checkpatch issue:
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.

Applied to the togreg branch of iio.git. Pushed out as testing initially to let the autobuilders play with it.

One request though, please post iio related patches to [email protected] even for drivers in staging. That way they are less likely to fall through the cracks!

I updates the Outreachy instructions accordingly.

thanks,
julia

Quoted 28 lines

Jonathan

Quoted 10 lines
---
 drivers/staging/iio/accel/adis16240_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/accel/adis16240_core.c +0 -0
index d5b99e6..e1bc9fc 100644

drivers/staging/iio/accel/adis16240_core.c static ssize_t adis16240_read_12bit_signed(struct device *dev, · line 71

Quoted 8 lines
drivers/staging/iio/accel/adis16240_core.c +1 -1
@@ -65,7 +65,7 @@ static ssize_t adis16240_read_12bit_signed(struct device *dev,
 	return ret;
 }
 
-static IIO_DEVICE_ATTR(in_accel_xyz_squared_peak_raw, S_IRUGO,
+static IIO_DEVICE_ATTR(in_accel_xyz_squared_peak_raw, 0444,
 		       adis16240_read_12bit_signed, NULL,
 		       ADIS16240_XYZPEAK_OUT);
 

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/fc505638-1355-7a14-3853-32210e186df8%40kernel.org.
For more options, visit https://groups.google.com/d/optout.

#3 lore raw
Quoted 13 lines · Julia Lawall
Quoted 3 lines · Jonathan Cameron
Quoted 2 lines · sayli karnik

The patch resolves following checkpatch issue:
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider

using

Quoted 4 lines
Quoted 3 lines

octal permissions '0444'.

Applied to the togreg branch of iio.git. Pushed out as testing

initially to let

Quoted 8 lines
Quoted 3 lines

the autobuilders play with it.

One request though, please post iio related patches to

[email protected] even

Quoted 1 line

for drivers in staging. That way they are less likely to fall

through the cracks!

I updates the Outreachy instructions accordingly.

Thanks

Jonathan

Quoted 38 lines

thanks,
julia

Quoted 7 lines

Jonathan

Review

Quoted 5 lines
---
 drivers/staging/iio/accel/adis16240_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/staging/iio/accel/adis16240_core.c

Quoted 4 lines

drivers/staging/iio/accel/adis16240_core.c static ssize_t adis16240_read_12bit_signed(struct

Quoted 4 lines

index d5b99e6..e1bc9fc 100644

drivers/staging/iio/accel/adis16240_core.c +0 -0
@@ -65,7 +65,7 @@ static ssize_t adis16240_read_12bit_signed(struct

device *dev,

Quoted 12 lines

drivers/staging/iio/accel/adis16240_core.c static ssize_t adis16240_read_12bit_signed(struct device *dev, · line 71

Quoted 9 lines
drivers/staging/iio/accel/adis16240_core.c +1 -1
 	return ret;
 }
 
-static IIO_DEVICE_ATTR(in_accel_xyz_squared_peak_raw, S_IRUGO,
+static IIO_DEVICE_ATTR(in_accel_xyz_squared_peak_raw, 0444,
 		       adis16240_read_12bit_signed, NULL,
 		       ADIS16240_XYZPEAK_OUT);
 

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it,

send an email to [email protected].

Quoted 1 line

To post to this group, send email to

[email protected].

Quoted 1 line

To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/fc505638-1355-7a14-3853-32210e186df8%40kernel.org.

Quoted 2 lines

For more options, visit https://groups.google.com/d/optout.

Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity.