OSDN Git Service

iio/axp288_adc: add missing channel info mask
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Mon, 6 Apr 2015 18:38:20 +0000 (11:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Jun 2015 15:20:52 +0000 (08:20 -0700)
commit3e630b9b8fef3ad7a0267cdd1dd48505ce09f730
tree199ef70e2fc330467961d937db8a69f95280b2b9
parent3c40260cb054ec2ccf67058e7e768fa62964d926
iio/axp288_adc: add missing channel info mask

commit d0716b0ea4ce11a13477163c14b26e180922ba51 upstream.

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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/axp288_adc.c