diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-05-04 16:29:56 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-05-14 18:48:10 +0900 |
commit | ad25c92ecb160235668cdeaff26f5907a6fbf6b3 (patch) | |
tree | f94bf0d3b3332605e3c22f17ec7c80f7e399dc62 /drivers/spi/spi.c | |
parent | 2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff) | |
download | talos-op-linux-ad25c92ecb160235668cdeaff26f5907a6fbf6b3.tar.gz talos-op-linux-ad25c92ecb160235668cdeaff26f5907a6fbf6b3.zip |
spi: core: Replace S_IRUGO permissions by 0444
Octal permissions are preferred over symbolic permissions.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r-- | drivers/spi/spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 89254a55eb2e..bd7a546f5d9b 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -80,7 +80,7 @@ static ssize_t spi_master_##field##_show(struct device *dev, \ return spi_statistics_##field##_show(&master->statistics, buf); \ } \ static struct device_attribute dev_attr_spi_master_##field = { \ - .attr = { .name = file, .mode = S_IRUGO }, \ + .attr = { .name = file, .mode = 0444 }, \ .show = spi_master_##field##_show, \ }; \ static ssize_t spi_device_##field##_show(struct device *dev, \ @@ -91,7 +91,7 @@ static ssize_t spi_device_##field##_show(struct device *dev, \ return spi_statistics_##field##_show(&spi->statistics, buf); \ } \ static struct device_attribute dev_attr_spi_device_##field = { \ - .attr = { .name = file, .mode = S_IRUGO }, \ + .attr = { .name = file, .mode = 0444 }, \ .show = spi_device_##field##_show, \ } |