diff options
author | Gregory CLEMENT <gregory.clement@bootlin.com> | 2020-04-30 15:05:47 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-05-03 15:09:25 +0200 |
commit | bcfa1e253d2e329e1ebab5c89f3c73f6dd17606c (patch) | |
tree | 0cc801b654fce0cd81e81fb0e725abca65595853 /fs/btrfs | |
parent | staging: iio: ad2s1210: Fix SPI reading (diff) | |
download | linux-bcfa1e253d2e329e1ebab5c89f3c73f6dd17606c.tar.xz linux-bcfa1e253d2e329e1ebab5c89f3c73f6dd17606c.zip |
iio: adc: ti-ads8344: Fix channel selection
During initial submission the selection of the channel was done using
the scan_index member of the iio_chan_spec structure. It was an abuse
because this member is supposed to be used with a buffer so it was
removed.
However there was still the need to be able to known how to select a
channel, the correct member to store this information is address.
Thanks to this it is possible to select any other channel than the
channel 0.
Fixes: 8dd2d7c0fed7 ("iio: adc: Add driver for the TI ADS8344 A/DC chips")
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'fs/btrfs')
0 files changed, 0 insertions, 0 deletions