[PATCH 1/2] iio: proximity: as3935: Fix channel type
Cristina Opriceana
cristina.opriceana at gmail.com
Thu Jun 18 16:30:03 EEST 2015
Change channel type to IIO_DISTANCE, since this sensor computes
proximity as the inverse of distance and not reflectivity.
Signed-off-by: Cristina Opriceana <cristina.opriceana at gmail.com>
---
drivers/iio/proximity/as3935.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/proximity/as3935.c b/drivers/iio/proximity/as3935.c
index bc0d68e..14b9b28 100644
--- a/drivers/iio/proximity/as3935.c
+++ b/drivers/iio/proximity/as3935.c
@@ -69,7 +69,7 @@ struct as3935_state {
static const struct iio_chan_spec as3935_channels[] = {
{
- .type = IIO_PROXIMITY,
+ .type = IIO_DISTANCE,
.info_mask_separate =
BIT(IIO_CHAN_INFO_RAW) |
BIT(IIO_CHAN_INFO_PROCESSED),
--
1.9.1
More information about the firefly
mailing list