iio: proximity: vcnl3020: Drop unnecessary alignment requirement for i2c device
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 May 2022 17:57:07 +0000 (18:57 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 14 Jun 2022 10:53:19 +0000 (11:53 +0100)
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
drivers/iio/proximity/vcnl3020.c

index ff83638db16f5cea16d81f297f87ec7dc5673d68..cbc8400c773c4664da5fe7e8677846999cbe8a4e 100644 (file)
@@ -71,14 +71,14 @@ static const int vcnl3020_prox_sampling_frequency[][2] = {
  * @dev:       vcnl3020 device.
  * @rev:       revision id.
  * @lock:      lock for protecting access to device hardware registers.
- * @buf:       DMA safe __be16 buffer.
+ * @buf:       __be16 buffer.
  */
 struct vcnl3020_data {
        struct regmap *regmap;
        struct device *dev;
        u8 rev;
        struct mutex lock;
-       __be16 buf ____cacheline_aligned;
+       __be16 buf;
 };
 
 /**