projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25afffe
)
iio: as3935: allocate correct iio_device size
author
George McCollister
<george.mccollister@gmail.com>
Fri, 31 Oct 2014 15:44:00 +0000
(15:44 +0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Wed, 5 Nov 2014 18:33:46 +0000
(18:33 +0000)
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>
drivers/iio/proximity/as3935.c
patch
|
blob
|
history
diff --git
a/drivers/iio/proximity/as3935.c
b/drivers/iio/proximity/as3935.c
index 5e780ef206f3c48774cb3f2d3a587ba0c6be1571..8349cc0fdf66b2c984f2592101a7fcd1613c4ce4 100644
(file)
--- 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;