Linux IIO development
 help / color / mirror / Atom feed
* [PATCH 3/3] staging:iio:adis16350 add dummy ring functions for no ring build case
@ 2010-07-28 19:08 Jonathan Cameron
  2010-07-28 21:13 ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Cameron @ 2010-07-28 19:08 UTC (permalink / raw)
  To: Greg KH; +Cc: Randy Dunlap, akpm, linux-iio, Jonathan Cameron

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
---
 drivers/staging/iio/imu/adis16350.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/iio/imu/adis16350.h b/drivers/staging/iio/imu/adis16350.h
index 738deba..0d2eda8 100644
--- a/drivers/staging/iio/imu/adis16350.h
+++ b/drivers/staging/iio/imu/adis16350.h
@@ -165,5 +165,13 @@ adis16350_read_data_from_ring(struct device *dev,
 	return 0;
 }
 
+int adis16350_configure_ring(struct iio_dev *indio_dev)
+{
+	return 0;
+}
+
+void adis16350_unconfigure_ring(struct iio_dev *indio_dev)
+{
+}
 #endif /* CONFIG_IIO_RING_BUFFER */
 #endif /* SPI_ADIS16350_H_ */
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 3/3] staging:iio:adis16350 add dummy ring functions for no ring build case
  2010-07-28 19:08 [PATCH 3/3] staging:iio:adis16350 add dummy ring functions for no ring build case Jonathan Cameron
@ 2010-07-28 21:13 ` Jonathan Cameron
  2010-07-28 23:19   ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Cameron @ 2010-07-28 21:13 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: Greg KH, Randy Dunlap, akpm, linux-iio

On 07/28/10 20:08, Jonathan Cameron wrote:
> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
> ---
Sorry these should both be static.
Should have run sparse before throwing these out...
>  drivers/staging/iio/imu/adis16350.h |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/staging/iio/imu/adis16350.h b/drivers/staging/iio/imu/adis16350.h
> index 738deba..0d2eda8 100644
> --- a/drivers/staging/iio/imu/adis16350.h
> +++ b/drivers/staging/iio/imu/adis16350.h
> @@ -165,5 +165,13 @@ adis16350_read_data_from_ring(struct device *dev,
>  	return 0;
>  }
>  
> +int adis16350_configure_ring(struct iio_dev *indio_dev)
> +{
> +	return 0;
> +}
> +
> +void adis16350_unconfigure_ring(struct iio_dev *indio_dev)
> +{
> +}
>  #endif /* CONFIG_IIO_RING_BUFFER */
>  #endif /* SPI_ADIS16350_H_ */

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 3/3] staging:iio:adis16350 add dummy ring functions for no ring build case
  2010-07-28 21:13 ` Jonathan Cameron
@ 2010-07-28 23:19   ` Andrew Morton
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2010-07-28 23:19 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: Greg KH, Randy Dunlap, linux-iio

On Wed, 28 Jul 2010 22:13:40 +0100
Jonathan Cameron <jic23@cam.ac.uk> wrote:

> On 07/28/10 20:08, Jonathan Cameron wrote:
> > Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
> > ---
> Sorry these should both be static.
> Should have run sparse before throwing these out...

static inline, actually.

> >  drivers/staging/iio/imu/adis16350.h |    8 ++++++++
> >  1 files changed, 8 insertions(+), 0 deletions(-)
> > 
> > diff --git a/drivers/staging/iio/imu/adis16350.h b/drivers/staging/iio/imu/adis16350.h
> > index 738deba..0d2eda8 100644
> > --- a/drivers/staging/iio/imu/adis16350.h
> > +++ b/drivers/staging/iio/imu/adis16350.h
> > @@ -165,5 +165,13 @@ adis16350_read_data_from_ring(struct device *dev,
> >  	return 0;
> >  }
> >  
> > +int adis16350_configure_ring(struct iio_dev *indio_dev)
> > +{
> > +	return 0;
> > +}
> > +
> > +void adis16350_unconfigure_ring(struct iio_dev *indio_dev)
> > +{
> > +}
> >  #endif /* CONFIG_IIO_RING_BUFFER */
> >  #endif /* SPI_ADIS16350_H_ */

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-28 23:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-28 19:08 [PATCH 3/3] staging:iio:adis16350 add dummy ring functions for no ring build case Jonathan Cameron
2010-07-28 21:13 ` Jonathan Cameron
2010-07-28 23:19   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox