mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ethernet: 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 <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d61e403856
commit
d3757ba4c1
40 changed files with 194 additions and 195 deletions
|
@ -2903,8 +2903,7 @@ static ssize_t ehea_show_port_id(struct device *dev,
|
|||
return sprintf(buf, "%d", port->logical_port_id);
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(log_port_id, S_IRUSR | S_IRGRP | S_IROTH, ehea_show_port_id,
|
||||
NULL);
|
||||
static DEVICE_ATTR(log_port_id, 0444, ehea_show_port_id, NULL);
|
||||
|
||||
static void logical_port_release(struct device *dev)
|
||||
{
|
||||
|
@ -3235,8 +3234,8 @@ static ssize_t ehea_remove_port(struct device *dev,
|
|||
return (ssize_t) count;
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(probe_port, S_IWUSR, NULL, ehea_probe_port);
|
||||
static DEVICE_ATTR(remove_port, S_IWUSR, NULL, ehea_remove_port);
|
||||
static DEVICE_ATTR(probe_port, 0200, NULL, ehea_probe_port);
|
||||
static DEVICE_ATTR(remove_port, 0200, NULL, ehea_remove_port);
|
||||
|
||||
static int ehea_create_device_sysfs(struct platform_device *dev)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue