linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: srinivas pandruvada <srinivas.pandruvada@intel.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH] IIO: core: Add hysteresis in channel spec
Date: Thu, 12 Jul 2012 20:30:00 +0100	[thread overview]
Message-ID: <4FFF25B8.7050008@kernel.org> (raw)
In-Reply-To: <1341865351-6673-1-git-send-email-srinivas.pandruvada@intel.com>

On 07/09/2012 09:22 PM, srinivas pandruvada wrote:
> Added hysteresis to the list of channel info enumeration, shared
> /separate bit defines and to postfix channel info strings.
> 
> Signed-off-by: srinivas pandruvada <srinivas.pandruvada@intel.com>
I'm fine with this, but typically we only merge these sorts of things
in the same patch series as the first driver to use them (make it
much more obvious what the point is!)

Jonathan
> ---
>  drivers/iio/industrialio-core.c |    1 +
>  include/linux/iio/iio.h         |    5 +++++
>  2 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
> index 1ddd886..ceb5d90 100644
> --- a/drivers/iio/industrialio-core.c
> +++ b/drivers/iio/industrialio-core.c
> @@ -92,6 +92,7 @@ static const char * const iio_chan_info_postfix[] = {
>  	[IIO_CHAN_INFO_FREQUENCY] = "frequency",
>  	[IIO_CHAN_INFO_PHASE] = "phase",
>  	[IIO_CHAN_INFO_HARDWAREGAIN] = "hardwaregain",
> +	[IIO_CHAN_INFO_HYSTERESIS] = "hysteresis",
>  };
>  
>  const struct iio_chan_spec
> diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
> index 3a4f6a3..9ed1063 100644
> --- a/include/linux/iio/iio.h
> +++ b/include/linux/iio/iio.h
> @@ -35,6 +35,7 @@ enum iio_chan_info_enum {
>  	IIO_CHAN_INFO_FREQUENCY,
>  	IIO_CHAN_INFO_PHASE,
>  	IIO_CHAN_INFO_HARDWAREGAIN,
> +	IIO_CHAN_INFO_HYSTERESIS,
>  };
>  
>  #define IIO_CHAN_INFO_SHARED_BIT(type) BIT(type*2)
> @@ -100,6 +101,10 @@ enum iio_chan_info_enum {
>  	IIO_CHAN_INFO_SEPARATE_BIT(IIO_CHAN_INFO_HARDWAREGAIN)
>  #define IIO_CHAN_INFO_HARDWAREGAIN_SHARED_BIT			\
>  	IIO_CHAN_INFO_SHARED_BIT(IIO_CHAN_INFO_HARDWAREGAIN)
> +#define IIO_CHAN_INFO_HYSTERESIS_SEPARATE_BIT			\
> +	IIO_CHAN_INFO_SEPARATE_BIT(IIO_CHAN_INFO_HYSTERESIS)
> +#define IIO_CHAN_INFO_HYSTERESIS_SHARED_BIT			\
> +	IIO_CHAN_INFO_SHARED_BIT(IIO_CHAN_INFO_HYSTERESIS)
>  
>  enum iio_endian {
>  	IIO_CPU,
> 



      reply	other threads:[~2012-07-12 19:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-09 20:22 [PATCH] IIO: core: Add hysteresis in channel spec srinivas pandruvada
2012-07-12 19:30 ` Jonathan Cameron [this message]

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=4FFF25B8.7050008@kernel.org \
    --to=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=srinivas.pandruvada@intel.com \
    /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).