lkml.org 
[lkml]   [2011]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] staging:iio:proof of concept in kernel interface.
On 10/17/11 10:39, Mark Brown wrote:
> On Sun, Oct 16, 2011 at 08:45:06PM +0200, Linus Walleij wrote:
>
>> Then this API feels comfortable:
>
>> struct adc *adc_get(struct device *dev, const char *channel);
>> void adc_put(struct adc *adc);
>> int adc_read_raw(struct adc *adc, int *val);
>
>> We can then add adc_read_voltage(), adc_read_temperature(), adc_read_foo() ...
>
> That should work for pretty much all of the AUXADCs.
>
Agreed with extra indirection for channel association as per my
other email.



\
 
 \ /
  Last update: 2011-10-17 11:47    [W:0.891 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site