Skip to content

Commit f73cde6

Browse files
gmccollisterjic23
authored andcommitted
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>
1 parent 25afffe commit f73cde6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/iio/proximity/as3935.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static int as3935_probe(struct spi_device *spi)
330330
return -EINVAL;
331331
}
332332

333-
indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(st));
333+
indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
334334
if (!indio_dev)
335335
return -ENOMEM;
336336

0 commit comments

Comments
 (0)