linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: Jonathan Cameron <jic23@cam.ac.uk>,
	linux-iio@vger.kernel.org, drivers@analog.com
Subject: Re: [PATCH 5/5] staging:iio: Move the ad7298 driver out of staging
Date: Sat, 17 Nov 2012 11:45:06 +0000	[thread overview]
Message-ID: <50A778C2.809@kernel.org> (raw)
In-Reply-To: <1352985328-24322-5-git-send-email-lars@metafoo.de>

On 11/15/2012 01:15 PM, Lars-Peter Clausen wrote:
> The driver does not expose any custom API to userspace and none of the standard
> static code checker tools report any issues, so move it out of staging.
> 
one day I'll work out how to make a tiny change in an earlier patch without needing
to respin the entire follow up more or less by hand.

Anyhow, now done, and added to togreg branch of iio.git

Other than that little slip, a nice patch set Lars.
Thanks!
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> ---
>  drivers/iio/adc/Kconfig                                      | 12 ++++++++++++
>  drivers/iio/adc/Makefile                                     |  1 +
>  drivers/{staging => }/iio/adc/ad7298.c                       |  2 +-
>  drivers/staging/iio/adc/Kconfig                              | 12 ------------
>  drivers/staging/iio/adc/Makefile                             |  1 -
>  .../staging/iio/adc => include/linux/platform_data}/ad7298.h |  4 ++--
>  6 files changed, 16 insertions(+), 16 deletions(-)
>  rename drivers/{staging => }/iio/adc/ad7298.c (99%)
>  rename {drivers/staging/iio/adc => include/linux/platform_data}/ad7298.h (80%)
> 
> diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
> index ef5200a..cd5eed6 100644
> --- a/drivers/iio/adc/Kconfig
> +++ b/drivers/iio/adc/Kconfig
> @@ -18,6 +18,18 @@ config AD7266
>  	  Say yes here to build support for Analog Devices AD7265 and AD7266
>  	  ADCs.
>  
> +config AD7298
> +	tristate "Analog Devices AD7298 ADC driver"
> +	depends on SPI
> +	select IIO_BUFFER
> +	select IIO_TRIGGERED_BUFFER
> +	help
> +	  Say yes here to build support for Analog Devices AD7298
> +	  8 Channel ADC with temperature sensor.
> +
> +	  To compile this driver as a module, choose M here: the
> +	  module will be called ad7298.
> +
>  config AD7791
>  	tristate "Analog Devices AD7791 ADC driver"
>  	depends on SPI
> diff --git a/drivers/iio/adc/Makefile b/drivers/iio/adc/Makefile
> index 54ac7bb..3256dc6 100644
> --- a/drivers/iio/adc/Makefile
> +++ b/drivers/iio/adc/Makefile
> @@ -4,6 +4,7 @@
>  
>  obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o
>  obj-$(CONFIG_AD7266) += ad7266.o
> +obj-$(CONFIG_AD7298) += ad7298.o
>  obj-$(CONFIG_AD7476) += ad7476.o
>  obj-$(CONFIG_AD7791) += ad7791.o
>  obj-$(CONFIG_AD7887) += ad7887.o
> diff --git a/drivers/staging/iio/adc/ad7298.c b/drivers/iio/adc/ad7298.c
> similarity index 99%
> rename from drivers/staging/iio/adc/ad7298.c
> rename to drivers/iio/adc/ad7298.c
> index 2742a9d..441a9a2 100644
> --- a/drivers/staging/iio/adc/ad7298.c
> +++ b/drivers/iio/adc/ad7298.c
> @@ -23,7 +23,7 @@
>  #include <linux/iio/trigger_consumer.h>
>  #include <linux/iio/triggered_buffer.h>
>  
> -#include "ad7298.h"
> +#include <linux/platform_data/ad7298.h>
>  
>  #define AD7298_WRITE	(1 << 15) /* write to the control register */
>  #define AD7298_REPEAT	(1 << 14) /* repeated conversion enable */
> diff --git a/drivers/staging/iio/adc/Kconfig b/drivers/staging/iio/adc/Kconfig
> index 5086a46..dc8582b 100644
> --- a/drivers/staging/iio/adc/Kconfig
> +++ b/drivers/staging/iio/adc/Kconfig
> @@ -10,18 +10,6 @@ config AD7291
>  	  Say yes here to build support for Analog Devices AD7291
>  	  8 Channel ADC with temperature sensor.
>  
> -config AD7298
> -	tristate "Analog Devices AD7298 ADC driver"
> -	depends on SPI
> -	select IIO_BUFFER
> -	select IIO_TRIGGERED_BUFFER
> -	help
> -	  Say yes here to build support for Analog Devices AD7298
> -	  8 Channel ADC with temperature sensor.
> -
> -	  To compile this driver as a module, choose M here: the
> -	  module will be called ad7298.
> -
>  config AD7606
>  	tristate "Analog Devices AD7606 ADC driver"
>  	depends on GPIOLIB
> diff --git a/drivers/staging/iio/adc/Makefile b/drivers/staging/iio/adc/Makefile
> index e867d01..a80e603 100644
> --- a/drivers/staging/iio/adc/Makefile
> +++ b/drivers/staging/iio/adc/Makefile
> @@ -13,7 +13,6 @@ ad799x-$(CONFIG_AD799X_RING_BUFFER) += ad799x_ring.o
>  obj-$(CONFIG_AD799X) += ad799x.o
>  
>  obj-$(CONFIG_AD7887) += ad7887.o
> -obj-$(CONFIG_AD7298) += ad7298.o
>  
>  obj-$(CONFIG_AD7291) += ad7291.o
>  obj-$(CONFIG_AD7780) += ad7780.o
> diff --git a/drivers/staging/iio/adc/ad7298.h b/include/linux/platform_data/ad7298.h
> similarity index 80%
> rename from drivers/staging/iio/adc/ad7298.h
> rename to include/linux/platform_data/ad7298.h
> index c8ac969..fbf8adf 100644
> --- a/drivers/staging/iio/adc/ad7298.h
> +++ b/include/linux/platform_data/ad7298.h
> @@ -6,8 +6,8 @@
>   * Licensed under the GPL-2.
>   */
>  
> -#ifndef IIO_ADC_AD7298_H_
> -#define IIO_ADC_AD7298_H_
> +#ifndef __LINUX_PLATFORM_DATA_AD7298_H__
> +#define __LINUX_PLATFORM_DATA_AD7298_H__
>  
>  /**
>   * struct ad7298_platform_data - Platform data for the ad7298 ADC driver
> 

  reply	other threads:[~2012-11-17 11:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-15 13:15 [PATCH 1/5] staging:iio:ad7298: Do not perform endianness conversion in buffered mode Lars-Peter Clausen
2012-11-15 13:15 ` [PATCH 2/5] staging:iio:ad7298: Rework regulator handling Lars-Peter Clausen
2012-11-17 11:17   ` Jonathan Cameron
2012-11-15 13:15 ` [PATCH 3/5] staging:iio:ad7298: Fix temperature scale and offset Lars-Peter Clausen
2012-11-17 11:19   ` Jonathan Cameron
2012-11-15 13:15 ` [PATCH 4/5] staging:iio:ad7298: Squash everything into one file Lars-Peter Clausen
2012-11-17 11:20   ` Jonathan Cameron
2012-11-17 11:34     ` Jonathan Cameron
2012-11-17 17:23       ` Lars-Peter Clausen
2012-11-15 13:15 ` [PATCH 5/5] staging:iio: Move the ad7298 driver out of staging Lars-Peter Clausen
2012-11-17 11:45   ` Jonathan Cameron [this message]
2012-11-17 11:16 ` [PATCH 1/5] staging:iio:ad7298: Do not perform endianness conversion in buffered mode Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50A778C2.809@kernel.org \
    --to=jic23@kernel.org \
    --cc=drivers@analog.com \
    --cc=jic23@cam.ac.uk \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).