diff options
author | Mark Brown <broonie@kernel.org> | 2017-07-03 11:21:05 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-07-03 11:21:05 -0400 |
commit | 096bf6b7f4fcc2fe486f61526b888034a7059342 (patch) | |
tree | a63c9e6af58a8bea0a215105a3aedcee89bc338a | |
parent | 20e5c748d9dc5b5b91f7dc03883c122ff8fdcb6b (diff) | |
parent | ad25c92ecb160235668cdeaff26f5907a6fbf6b3 (diff) |
Merge remote-tracking branch 'spi/topic/core' into spi-next
-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 7bb733d91519..6f87fec409b5 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 | } \ |
82 | static struct device_attribute dev_attr_spi_master_##field = { \ | 82 | static 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 | }; \ |
86 | static ssize_t spi_device_##field##_show(struct device *dev, \ | 86 | static 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 | } \ |
93 | static struct device_attribute dev_attr_spi_device_##field = { \ | 93 | static 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 | ||