]> git.baikalelectronics.ru Git - kernel.git/commit
iio: ad_sigma_delta: select channel when reading register
authorDragos Bogdan <dragos.bogdan@analog.com>
Tue, 19 Mar 2019 10:47:00 +0000 (12:47 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 24 Mar 2019 17:51:03 +0000 (17:51 +0000)
commitd58c577c160479a65825297e09f3a246e64a1d00
tree86f711ddce2cd8272766cafabd639538d9885a60
parent178a7dfcb95c4fe3c95be7d88c7409b2480fbd55
iio: ad_sigma_delta: select channel when reading register

The desired channel has to be selected in order to correctly fill the
buffer with the corresponding data.
The `ad_sd_write_reg()` already does this, but for the
`ad_sd_read_reg_raw()` this was omitted.

Fixes: 73ddaa6b2f8a6 ("iio:adc: Add common code for ADI Sigma Delta devices")
Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad_sigma_delta.c