diff options
author | George McCollister | 2014-10-31 15:44:00 +0000 |
---|---|---|
committer | Jonathan Cameron | 2014-11-05 18:33:46 +0000 |
commit | f73cde600d410ad4b31362a9c348016e40a146ea (patch) | |
tree | 0d770bb466f294d4ad8ebd66c8b6b5082ee53fb5 | |
parent | 25afffe16d07909197f99163ca7cd1f80fb5cbdd (diff) |
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.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; |