[UPSTREAM] Attempt at improving ADC access

Balaji Rao balajirrao at openmoko.org
Thu Oct 16 23:10:43 CEST 2008

On Thu, Oct 16, 2008 at 06:26:19PM -0200, Werner Almesberger wrote:
> Balaji Rao wrote:
> > To call adc_async_read from adc_sync_read we need to pass the adc_request as
> > a callback param,
> ... unless you put the completion in a local variable of
> adc_sync_read and just pass a pointer to the completion :-)

Sounds good. But in this case we still won't have an adc_request
object within adc_sync_read to read the adc result from. And there is no
other way we can get back the result. Isn't it ? :)

	- Balaji

More information about the openmoko-kernel mailing list