aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorMark Brown2016-01-11 16:48:29 +0000
committerMark Brown2016-01-11 16:48:29 +0000
commit174c21163d83f730f7e0194d4682d5149946a7f8 (patch)
tree3c8e52335fef3668f3566cd3841e90cd625702ba /drivers/spi
parentf30f072a5f3c0b2b5aa0ab8a6ed6482fdf581d17 (diff)
parentd1eba93bd0fcd3f699cb8d666bc97788ee85d557 (diff)
Merge remote-tracking branch 'spi/topic/core' into spi-next
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index dee1cb87d24f..a678a7f1a65d 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -84,8 +84,7 @@ static ssize_t spi_device_##field##_show(struct device *dev, \
struct device_attribute *attr, \
char *buf) \
{ \
- struct spi_device *spi = container_of(dev, \
- struct spi_device, dev); \
+ struct spi_device *spi = to_spi_device(dev); \
return spi_statistics_##field##_show(&spi->statistics, buf); \
} \
static struct device_attribute dev_attr_spi_device_##field = { \