diff options
author | Mark Brown | 2017-07-03 16:21:05 +0100 |
---|---|---|
committer | Mark Brown | 2017-07-03 16:21:05 +0100 |
commit | 096bf6b7f4fcc2fe486f61526b888034a7059342 (patch) | |
tree | a63c9e6af58a8bea0a215105a3aedcee89bc338a /drivers/spi | |
parent | 20e5c748d9dc5b5b91f7dc03883c122ff8fdcb6b (diff) | |
parent | ad25c92ecb160235668cdeaff26f5907a6fbf6b3 (diff) |
Merge remote-tracking branch 'spi/topic/core' into spi-next
Diffstat (limited to 'drivers/spi')
-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, \ 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, \ } |