projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iio: gyro: ADXRS450: Add missing read support for calibbias attribute
[deliverable/linux.git]
/
drivers
/
staging
/
iio
/
gyro
/
adxrs450_core.c
diff --git
a/drivers/staging/iio/gyro/adxrs450_core.c
b/drivers/staging/iio/gyro/adxrs450_core.c
index 9d3362880d68af1745bbe9122561deca7150861c..a146d55c37c8eadecbcf815a9f86fba2db13db3d 100644
(file)
--- 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;
This page took
0.024432 seconds
and
5
git commands to generate.