Re: [PATCH V3] Adds support for Texas Instruments ADS1110 adc.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Duss Pirmin <pirmin.duss@xxxxxxxxx> wrote:

>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
Staging-next branch from Greg kh's staging tree on git.kernel.org.
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
--
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


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux