aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2017-05-04 10:29:56 -0400
committerMark Brown <broonie@kernel.org>2017-05-14 05:48:10 -0400
commitad25c92ecb160235668cdeaff26f5907a6fbf6b3 (patch)
treef94bf0d3b3332605e3c22f17ec7c80f7e399dc62
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff)
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>
-rw-r--r--drivers/spi/spi.c4
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, \
80 return spi_statistics_##field##_show(&master->statistics, buf); \ 80 return spi_statistics_##field##_show(&master->statistics, buf); \
81} \ 81} \
82static struct device_attribute dev_attr_spi_master_##field = { \ 82static struct device_attribute dev_attr_spi_master_##field = { \
83 .attr = { .name = file, .mode = S_IRUGO }, \ 83 .attr = { .name = file, .mode = 0444 }, \
84 .show = spi_master_##field##_show, \ 84 .show = spi_master_##field##_show, \
85}; \ 85}; \
86static ssize_t spi_device_##field##_show(struct device *dev, \ 86static ssize_t spi_device_##field##_show(struct device *dev, \
@@ -91,7 +91,7 @@ static ssize_t spi_device_##field##_show(struct device *dev, \
91 return spi_statistics_##field##_show(&spi->statistics, buf); \ 91 return spi_statistics_##field##_show(&spi->statistics, buf); \
92} \ 92} \
93static struct device_attribute dev_attr_spi_device_##field = { \ 93static struct device_attribute dev_attr_spi_device_##field = { \
94 .attr = { .name = file, .mode = S_IRUGO }, \ 94 .attr = { .name = file, .mode = 0444 }, \
95 .show = spi_device_##field##_show, \ 95 .show = spi_device_##field##_show, \
96} 96}
97 97