diff options
| author | 2019-09-12 16:43:08 +0200 | |
|---|---|---|
| committer | 2019-09-21 18:15:10 +0100 | |
| commit | 348eb0b2c4f0f912d626fa789dfeb084b083e1f0 (patch) | |
| tree | 2a4f85e0a6e631293ce8f8b5e8438d9dae4b1d07 /include/uapi/linux/errqueue.h | |
| parent | iio: tcs3414: fix iio_triggered_buffer_{pre,post}enable positions (diff) | |
iio: ad7949: fix incorrect SPI xfer len
This driver supports 14-bits and 16-bits devices. All of them have a 14-bit
configuration registers. All SPI trasfers, for reading AD conversion
results and for writing the configuration register, fit in two bytes.
The driver always uses 4-bytes xfers which seems at least pointless (maybe
even harmful). This patch trims the SPI xfer len and the buffer size to
two bytes.
Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/uapi/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
