spi: core: Replace S_IRUGO permissions by 0444
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 4 May 2017 14:29:56 +0000 (16:29 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 14 May 2017 09:48:10 +0000 (18:48 +0900)
Octal permissions are preferred over symbolic permissions.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c

index 89254a55eb2e78c44e2a2c27bc693d9af623662b..bd7a546f5d9b63a1786c97032932d5caf9db4b98 100644 (file)
@@ -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,                              \
 }