diff options
| author | Joe Perches <[email protected]> | 2018-03-23 22:54:39 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-03-26 16:07:49 +0000 |
| commit | d61e40385655fbba659fc3d81df9bdf1b848e263 (patch) | |
| tree | 434dfc436eae37889fa25c484c310ce05952269a /drivers/net/can/at91_can.c | |
| parent | net: Use octal not symbolic permissions (diff) | |
| download | kernel-d61e40385655fbba659fc3d81df9bdf1b848e263.tar.gz kernel-d61e40385655fbba659fc3d81df9bdf1b848e263.zip | |
drivers/net: Use octal not symbolic permissions
Prefer the direct use of octal for permissions.
Done with checkpatch -f --types=SYMBOLIC_PERMS --fix-inplace
and some typing.
Miscellanea:
o Whitespace neatening around these conversions.
Signed-off-by: Joe Perches <[email protected]>
Reviewed-by: Wei Liu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/can/at91_can.c')
| -rw-r--r-- | drivers/net/can/at91_can.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index f37ce0e1b603..d98c69045b17 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_can.c @@ -1224,8 +1224,7 @@ static ssize_t at91_sysfs_set_mb0_id(struct device *dev, return ret; } -static DEVICE_ATTR(mb0_id, S_IWUSR | S_IRUGO, - at91_sysfs_show_mb0_id, at91_sysfs_set_mb0_id); +static DEVICE_ATTR(mb0_id, 0644, at91_sysfs_show_mb0_id, at91_sysfs_set_mb0_id); static struct attribute *at91_sysfs_attrs[] = { &dev_attr_mb0_id.attr, |
