]> asedeno.scripts.mit.edu Git - linux.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)
commitfccfb9ce70ed4ea7a145f77b86de62e38178517f
tree86f711ddce2cd8272766cafabd639538d9885a60
parentf6a7bf2ccf22db3e1b936ebc03898f9c025c051e
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: af3008485ea03 ("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