]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: cdc: ad7746: Use local buffer for multi byte reads.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 26 Jun 2022 12:29:26 +0000 (13:29 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 15 Aug 2022 21:30:00 +0000 (22:30 +0100)
commit6a8032b6dc8810fe95d8ebf2110797d56b685ccf
treedd6a5dd33d17b4223533120b6c33a9f0b670ae99
parent7271d891c827d2a349ae812150f34d29f7564c35
staging: iio: cdc: ad7746: Use local buffer for multi byte reads.

I2C does not require DMA safe buffers so there is no need to ensure
the buffers are in their own cacheline. Hence simplify things by
using a local variable instead of embedding the buffer in the chip
info structure.

Includes a trivial whitespace cleanup to drop a line between function
and error handling.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220626122938.582107-6-jic23@kernel.org
drivers/staging/iio/cdc/ad7746.c