diff options
author | Joe Perches <joe@perches.com> | 2018-03-23 19:34:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-26 12:07:49 -0400 |
commit | d3757ba4c1421d2ad00d2bf97119005e37ad2902 (patch) | |
tree | a3b09afa0c49bf22c10eb29c2436bf71619a5395 /drivers/net/ethernet/sun/niu.c | |
parent | d61e40385655fbba659fc3d81df9bdf1b848e263 (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/sun/niu.c')
-rw-r--r-- | drivers/net/ethernet/sun/niu.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ethernet/sun/niu.c b/drivers/net/ethernet/sun/niu.c index 8dd545fed30d..f081de4f38d7 100644 --- a/drivers/net/ethernet/sun/niu.c +++ b/drivers/net/ethernet/sun/niu.c | |||
@@ -9437,11 +9437,11 @@ static ssize_t show_num_ports(struct device *dev, | |||
9437 | } | 9437 | } |
9438 | 9438 | ||
9439 | static struct device_attribute niu_parent_attributes[] = { | 9439 | static struct device_attribute niu_parent_attributes[] = { |
9440 | __ATTR(port_phy, S_IRUGO, show_port_phy, NULL), | 9440 | __ATTR(port_phy, 0444, show_port_phy, NULL), |
9441 | __ATTR(plat_type, S_IRUGO, show_plat_type, NULL), | 9441 | __ATTR(plat_type, 0444, show_plat_type, NULL), |
9442 | __ATTR(rxchan_per_port, S_IRUGO, show_rxchan_per_port, NULL), | 9442 | __ATTR(rxchan_per_port, 0444, show_rxchan_per_port, NULL), |
9443 | __ATTR(txchan_per_port, S_IRUGO, show_txchan_per_port, NULL), | 9443 | __ATTR(txchan_per_port, 0444, show_txchan_per_port, NULL), |
9444 | __ATTR(num_ports, S_IRUGO, show_num_ports, NULL), | 9444 | __ATTR(num_ports, 0444, show_num_ports, NULL), |
9445 | {} | 9445 | {} |
9446 | }; | 9446 | }; |
9447 | 9447 | ||