diff options
| author | Andrea Merello <andrea.merello@gmail.com> | 2019-09-12 16:43:08 +0200 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-09-21 18:15:10 +0100 |
| commit | 348eb0b2c4f0f912d626fa789dfeb084b083e1f0 (patch) | |
| tree | 2a4f85e0a6e631293ce8f8b5e8438d9dae4b1d07 /tools/perf/scripts/python/bin | |
| parent | 0fe2f2b789190661df24bb8bf62294145729a1fe (diff) | |
| download | linux-348eb0b2c4f0f912d626fa789dfeb084b083e1f0.tar.gz linux-348eb0b2c4f0f912d626fa789dfeb084b083e1f0.zip | |
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 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
