summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge McCollister2014-10-31 16:44:00 +0100
committerJonathan Cameron2014-11-05 19:33:46 +0100
commitf73cde600d410ad4b31362a9c348016e40a146ea (patch)
tree0d770bb466f294d4ad8ebd66c8b6b5082ee53fb5
parentio: accel: kxcjk-1013: Fix iio_event_spec direction (diff)
downloadkernel-qcow2-linux-f73cde600d410ad4b31362a9c348016e40a146ea.tar.gz
kernel-qcow2-linux-f73cde600d410ad4b31362a9c348016e40a146ea.tar.xz
kernel-qcow2-linux-f73cde600d410ad4b31362a9c348016e40a146ea.zip
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>
-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;