[PATCH] IIO: Add basic MXS LRADC driver

Marek Vasut marex at denx.de
Mon Jul 9 06:03:09 EDT 2012


Dear Juergen Beisert,

> Hi Marek,
> 
> Marek Vasut wrote:
> > This driver is very basic. It supports userland trigger, buffer and
> > raw access to channels. The support for delay channels is missing
> > altogether.
> > 
> > Signed-off-by: Marek Vasut <marex at denx.de>
> > Cc: Jonathan Cameron <jic23 at kernel.org>
> > Cc: Wolfgang Denk <wd at denx.de>
> > Cc: Juergen Beisert <jbe at pengutronix.de>
> > ---
> > 
> >  drivers/staging/iio/adc/Kconfig     |   12 +
> >  drivers/staging/iio/adc/Makefile    |    1 +
> >  drivers/staging/iio/adc/mxs-lradc.c |  619
> >  +++++++++++++++++++++++++++++++++++ 3 files changed, 632 insertions(+)
> >  create mode 100644 drivers/staging/iio/adc/mxs-lradc.c
> > 
> > [...]
> 
> sorry for the delay, too much work at the same time.

You tell me.

> When I try to compile
> your code I get:
> 
> drivers/staging/iio/adc/mxs-lradc.c:42:40: fatal error:
> linux/iio/triggered_buffer.h: No such file or directory

You need this patches:
    iio:kfifo_buf Take advantage of the fixed record size used in IIO
    iio: kfifo - add poll support.

And use latest -next.

> 
> Regards,
> Juergen

Best regards,
Marek Vasut



More information about the linux-arm-kernel mailing list