diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2011-12-14 20:25:12 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-16 10:55:01 -0800 |
commit | 9631135dd9396aca149a3041197bce452fa0ce90 (patch) | |
tree | 38f10642ce8f6629ee38d5909616d905de0b6410 /drivers/staging/iio | |
parent | 90b9b2276bdc1a3cdff881a71a652683f6a5d58f (diff) | |
download | talos-op-linux-9631135dd9396aca149a3041197bce452fa0ce90.tar.gz talos-op-linux-9631135dd9396aca149a3041197bce452fa0ce90.zip |
iio: gyro: ADXRS450: Add missing read support for calibbias attribute
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/gyro/adxrs450_core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/iio/gyro/adxrs450_core.c b/drivers/staging/iio/gyro/adxrs450_core.c index 9d3362880d68..a146d55c37c8 100644 --- a/drivers/staging/iio/gyro/adxrs450_core.c +++ b/drivers/staging/iio/gyro/adxrs450_core.c @@ -308,6 +308,13 @@ static int adxrs450_read_raw(struct iio_dev *indio_dev, *val = t; ret = IIO_VAL_INT; break; + case IIO_CHAN_INFO_CALIBBIAS: + ret = adxrs450_spi_read_reg_16(indio_dev, ADXRS450_DNC1, &t); + if (ret) + break; + *val = t; + ret = IIO_VAL_INT; + break; default: ret = -EINVAL; break; |