Re: [PATCH] iio: add support for Analog Devices ad7194 a/d converter

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

 



On Mon, Jul 18, 2011 at 5:24 AM, Jonathan Cameron <jic23@xxxxxxxxx> wrote:
> On 07/18/11 12:01, Jonathan Cameron wrote:
>> cc'ing linux-iio and AD's driver list.
>>
>> Any particular reason for posting to lm-sensors? Now it's there we'll
>> keep them in the list though as someone might be interested.
>>
>> On 07/18/11 08:46, Paul Thomas wrote:
>>> This uses the iio sysfs interface, and inculdes gain and differential settings
>
> Hi Paul,
>
> This driver is lagging somewhat in interface terms. Having said that, it applies
> and compiles fine which will make catching up to current point much easier.
>
> If you are short on time I'm happy to do the conversion (as it is a nice simple
> driver), but obviously I'll need to test it to find out what I messed up this
> time.
>
> Big issues:
>
> 1) iio_dev->dev_data is going away, so please use the iio_priv stuff.
> 2) interface is not terribly close the abi spec.
> 3) use chan_spec based registration. Actually that'll clean up the abi
> issues as well and give you much shorter code.
> 4) differential channels are treated as separate channels (with appropriate
> numbering).  This is easy here as there are no nasty constraints on channel
> combinations (it only reads one at a time anyway!).
>
> Various nitpicks inline.  Though the above seems like a lot, you have done
> all the fiddly stuff about actually talking the the chips. Cleaning up
> interfaces is relatively straight forward!  Lots of fun stuff to add to this
> chip at a later date, but in the spirit of your driver, lets keep it simple
> for now!
>
> As long as you are happy to do a couple of rounds of testing, we could merge
> this as is and do the abi work as a series of small steps on top of it?
>
> Thanks,
>
> Jonathan

Hi Jonathan, I'd be happy to do the fixing. Is there an existing
multi-channel driver that might be helpful to reference here?

thanks,
Paul

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux