diff options
author | George McCollister <george.mccollister@gmail.com> | 2014-10-31 16:44:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-11-05 19:33:46 +0100 |
commit | f73cde600d410ad4b31362a9c348016e40a146ea (patch) | |
tree | 0d770bb466f294d4ad8ebd66c8b6b5082ee53fb5 /drivers | |
parent | io: accel: kxcjk-1013: Fix iio_event_spec direction (diff) | |
download | linux-f73cde600d410ad4b31362a9c348016e40a146ea.tar.xz 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iio/proximity/as3935.c | 2 |
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; |