Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: proximity: vcnl3020: Drop unnecessary alignment requirement for i2c device

I2C does not by default use buffers directly for DMA so there is
no need to ensure they are DMA safe.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Ivan Mikhaylov <i.mikhaylov@yadro.com>
Acked-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20220508175712.647246-88-jic23@kernel.org

+2 -2
+2 -2
drivers/iio/proximity/vcnl3020.c
··· 71 71 * @dev: vcnl3020 device. 72 72 * @rev: revision id. 73 73 * @lock: lock for protecting access to device hardware registers. 74 - * @buf: DMA safe __be16 buffer. 74 + * @buf: __be16 buffer. 75 75 */ 76 76 struct vcnl3020_data { 77 77 struct regmap *regmap; 78 78 struct device *dev; 79 79 u8 rev; 80 80 struct mutex lock; 81 - __be16 buf ____cacheline_aligned; 81 + __be16 buf; 82 82 }; 83 83 84 84 /**