diff options
author | Jacob Pan <jacob.jun.pan@linux.intel.com> | 2015-04-06 20:38:20 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-04-09 19:49:13 +0200 |
commit | d0716b0ea4ce11a13477163c14b26e180922ba51 (patch) | |
tree | cdd9f9b03e326974d53b6a27615ec056f1846f9c /drivers/iio/adc/qcom-spmi-vadc.c | |
parent | iio: pressure: bmp280: fix temp compensation (diff) | |
download | linux-d0716b0ea4ce11a13477163c14b26e180922ba51.tar.xz linux-d0716b0ea4ce11a13477163c14b26e180922ba51.zip |
iio/axp288_adc: add missing channel info mask
Commit 65de7654d39c70c2b ("iio: iio: Fix iio_channel_read return if
channel havn't info") added a check for valid info masks.
This patch adds missing channel info masks for all ADC channels.
Otherwise, iio_read_channel_raw() would return -EINVAL when called
by consumer drivers.
Note that the change of _processed to _raw actually fixes an ABI abuse
in the original driver where it was used to avoid some special handling
rather than because it was correct.
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/qcom-spmi-vadc.c')
0 files changed, 0 insertions, 0 deletions