linux-stable/drivers/iio/proximity
Jonathan Cameron cb71104169 iio: prox: as3935: Fix buffer alignment in iio_push_to_buffers_with_timestamp()
[ Upstream commit 37eb8d8c64 ]

To make code more readable, use a structure to express the channel
layout and ensure the timestamp is 8 byte aligned.

Found during an audit of all calls of uses of
iio_push_to_buffers_with_timestamp()

Fixes: 37b1ba2c68 ("iio: proximity: as3935: fix buffer stack trashing")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Matt Ranostay <matt.ranostay@konsulko.com>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210501170121.512209-15-jic23@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:17:39 +02:00
..
as3935.c iio: prox: as3935: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-20 16:17:39 +02:00
Kconfig
Makefile
pulsedlight-lidar-lite-v2.c iio: prox: pulsed-light: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-20 16:17:39 +02:00
srf04.c iio: srf04: fix wrong limitation in distance measuring 2019-11-12 19:18:08 +01:00
srf08.c iio: prox: srf08: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-20 16:17:39 +02:00
sx9500.c