iio: potentiostat: lmp91000: Fix alignment of buffer in iio_push_to_buffers_with_time...
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 1 May 2021 17:13:48 +0000 (18:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:37 +0000 (16:56 +0200)
commit246b4f1e2050cbda8d385c5141f5b7f09284b4b1
tree809e4282762187fb613ecd474dceaca7db4e400c
parent71dbba0b9525d98cb82afa3d976ea98d630df615
iio: potentiostat: lmp91000: Fix alignment of buffer in iio_push_to_buffers_with_timestamp()

[ Upstream commit 8979b67ec61abc232636400ee8c758a16a73c95f ]

Add __aligned(8) to ensure the buffer passed to
iio_push_to_buffers_with_timestamp() is suitable for the naturally
aligned timestamp that will be inserted.

Here structure is not used, because this buffer is also used
elsewhere in the driver.

Fixes: 67e17300dc1d ("iio: potentiostat: add LMP91000 support")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Matt Ranostay <matt.ranostay@konsulko.com>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Link: https://lore.kernel.org/r/20210501171352.512953-8-jic23@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/potentiostat/lmp91000.c