mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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
This commit is contained in:
parent
38e71240e2
commit
a794b34083
1 changed files with 1 additions and 1 deletions
|
@ -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[] = {
|
||||
|
|
Loading…
Reference in a new issue