I tried to apply the following changes:
+static const struct iio_chan_spec ads1110_channels[] = {
+ IIO_CHAN(IIO_VOLTAGE, 0, 1, 0, NULL, 0, 0,
+ (1<< IIO_CHAN_INFO_SCALE_SEPARATE), 0, 0,
We changed this recently. (1<< IIO_CHAN_INFO_SCALE_SEPARATE) should be
IIO_CHAN_INFO_SCALE_SEPARATE_BIT
[..]
+ struct ads1110_chip_info *st = iio_priv(indio_dev);
+ int ret, data, gain;
+
+ switch (mask) {
+ case 0:
+ mutex_lock(&indio_dev->mlock);
+ ret = ads1110_i2c_read_data(st,&data);
+ if (ret != ADS1110_DATA_BYTES)
+ return -EIO;
+
+ mutex_unlock(&indio_dev->mlock);
+
+ *val = data;
+
+ return IIO_VAL_INT;
+
+ case (1<< IIO_CHAN_INFO_SCALE_SHARED):
+
Just IIO_CHAN_INFO_SCALE
+ mutex_lock(&indio_dev->mlock);
It wont compile as the new symbols are not defined.
my tree is cloned from
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
a git pull tells me already up to date. So I assume that I'm working
against a wrong tree.
From where should I clone my tree for further development?
Best regards
Pirmin
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html