summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorGeorge McCollister <george.mccollister@gmail.com>2014-10-31 15:44:00 +0000
committerJonathan Cameron <jic23@kernel.org>2014-11-05 18:33:46 +0000
commitf73cde600d410ad4b31362a9c348016e40a146ea (patch)
tree0d770bb466f294d4ad8ebd66c8b6b5082ee53fb5 /drivers/iio
parent25afffe16d07909197f99163ca7cd1f80fb5cbdd (diff)
downloadlinux-f73cde600d410ad4b31362a9c348016e40a146ea.tar.bz2
iio: as3935: allocate correct iio_device size
Signed-off-by: George McCollister <george.mccollister@gmail.com> Acked-by: Hartmut Knaack <knaack.h@gmx.de> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/proximity/as3935.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/proximity/as3935.c b/drivers/iio/proximity/as3935.c
index 5e780ef206f3..8349cc0fdf66 100644
--- a/drivers/iio/proximity/as3935.c
+++ b/drivers/iio/proximity/as3935.c
@@ -330,7 +330,7 @@ static int as3935_probe(struct spi_device *spi)
return -EINVAL;
}
- indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(st));
+ indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
if (!indio_dev)
return -ENOMEM;