summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-05-08 20:55:46 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-06-14 13:53:12 +0300
commita794b34083820ff4131bf43245aeb7030fecf038 (patch)
tree49e58cda30349ca4b2f3da0b23c83442e9f29a9d
parent38e71240e2ff97184cdcdaf877cf62d3f16678e2 (diff)
downloadlinux-a794b34083820ff4131bf43245aeb7030fecf038.tar.xz
iio: accel: bmi088: Fix alignment for DMA safety
____cacheline_aligned is insufficient guarantee for non-coherent DMA. Switch to the updated IIO_DMA_MINALIGN definition. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: Nuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20220508175712.647246-7-jic23@kernel.org
-rw-r--r--drivers/iio/accel/bmi088-accel-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/bmi088-accel-core.c b/drivers/iio/accel/bmi088-accel-core.c
index 89eeb36456b3..bca4cf98bf4d 100644
--- a/drivers/iio/accel/bmi088-accel-core.c
+++ b/drivers/iio/accel/bmi088-accel-core.c
@@ -128,7 +128,7 @@ struct bmi088_accel_chip_info {
struct bmi088_accel_data {
struct regmap *regmap;
const struct bmi088_accel_chip_info *chip_info;
- u8 buffer[2] ____cacheline_aligned; /* shared DMA safe buffer */
+ u8 buffer[2] __aligned(IIO_DMA_MINALIGN); /* shared DMA safe buffer */
};
static const struct regmap_range bmi088_volatile_ranges[] = {