Commit "ti_tscadc: Update with IIO map interface & deal with partial activation"
by Pantelis Antoniou <[email protected]> removed this line.
Without it, the in_voltage?_raw entries are missing from sysfs.

Signed-off-by: Jan Luebbe <[email protected]>
---
 drivers/iio/adc/ti_am335x_adc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c
index ee20c0c..620cc0c 100644
--- a/drivers/iio/adc/ti_am335x_adc.c
+++ b/drivers/iio/adc/ti_am335x_adc.c
@@ -107,6 +107,7 @@ static int tiadc_channel_init(struct iio_dev *indio_dev,
                chan->type = IIO_VOLTAGE;
                chan->indexed = 1;
                chan->channel = i;
+               chan->info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT;
                chan->datasheet_name = s;
                chan->scan_type.sign = 'u';
                chan->scan_type.realbits = 12;
-- 
1.8.2.rc2

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to