소스 검색

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>
Geert Uytterhoeven 8 년 전
부모
커밋
ad25c92ecb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      drivers/spi/spi.c

+ 2 - 2
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);	\
 	return spi_statistics_##field##_show(&master->statistics, buf);	\
 }									\
 }									\
 static struct device_attribute dev_attr_spi_master_##field = {		\
 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,				\
 	.show = spi_master_##field##_show,				\
 };									\
 };									\
 static ssize_t spi_device_##field##_show(struct device *dev,		\
 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);	\
 	return spi_statistics_##field##_show(&spi->statistics, buf);	\
 }									\
 }									\
 static struct device_attribute dev_attr_spi_device_##field = {		\
 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,				\
 	.show = spi_device_##field##_show,				\
 }
 }