All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Peter Meerwald <pmeerw@pmeerw.net>
Cc: linux-iio@vger.kernel.org, Jon Brenner <jbrenner@taosinc.com>
Subject: Re: [PATCH] iio: add channel modifiers for RGBC (red/green/blue/clear) data
Date: Tue, 03 Jul 2012 20:52:00 +0100	[thread overview]
Message-ID: <4FF34D60.70806@kernel.org> (raw)
In-Reply-To: <1341138013-28267-3-git-send-email-pmeerw@pmeerw.net>

On 07/01/2012 11:20 AM, Peter Meerwald wrote:
> this patch steals the RGBC-related stuff from Jon Brenner's proposal
> (http://permalink.gmane.org/gmane.linux.kernel.iio/4354), CCT parts
> are left out for now
Ideally this would have Jon's ack (or signoff). I'll merge it in the
meantime, but probably won't send to Greg for a day or two if Jon
wants to add anything.
> 
> the adjd_s311 driver is making use of RGBC modifiers
> 
> shouldn't the documentation (sysfs-bus-iio-light) be migrated
> from staging?
> 
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
> Cc: Jon Brenner <jbrenner@taosinc.com>
> ---
>  drivers/iio/industrialio-core.c                    |    4 ++++
>  .../staging/iio/Documentation/sysfs-bus-iio-light  |   13 +++++++++++++
>  include/linux/iio/types.h                          |    4 ++++
>  3 files changed, 21 insertions(+)
> 
> diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
> index bb3c692..0e2f997 100644
> --- a/drivers/iio/industrialio-core.c
> +++ b/drivers/iio/industrialio-core.c
> @@ -74,6 +74,10 @@ static const char * const iio_modifier_names[] = {
>  	[IIO_MOD_SUM_SQUARED_X_Y_Z] = "x^2+y^2+z^2",
>  	[IIO_MOD_LIGHT_BOTH] = "both",
>  	[IIO_MOD_LIGHT_IR] = "ir",
> +	[IIO_MOD_LIGHT_CLEAR] = "clear",
> +	[IIO_MOD_LIGHT_RED] = "red",
> +	[IIO_MOD_LIGHT_GREEN] = "green",
> +	[IIO_MOD_LIGHT_BLUE] = "blue",
>  };
>  
>  /* relies on pairs of these shared then separate */
> diff --git a/drivers/staging/iio/Documentation/sysfs-bus-iio-light b/drivers/staging/iio/Documentation/sysfs-bus-iio-light
> index d52be03..1f4f6bf 100644
> --- a/drivers/staging/iio/Documentation/sysfs-bus-iio-light
> +++ b/drivers/staging/iio/Documentation/sysfs-bus-iio-light
> @@ -82,3 +82,16 @@ Contact:	linux-iio@vger.kernel.org
>  Description:
>  		This property gets/sets the table of coefficients
>  		used in calculating illuminance in lux.
> +
> +What:		/sys/bus/iio/devices/device[n]/in_intensity_clear[_input|_raw]
> +What:		/sys/bus/iio/devices/device[n]/in_intensity_red[_input|_raw]
> +What:		/sys/bus/iio/devices/device[n]/in_intensity_green[_input|_raw]
> +What:		/sys/bus/iio/devices/device[n]/in_intensity_blue[_input|_raw]
> +KernelVersion:	3.6
> +Contact:	linux-iio@vger.kernel.org
> +Description:
> +		This property is supported by sensors that have a RGBC
> +		sensing mode. This value should be the output from a reading
> +		and if expressed in SI units, should include _input. If this
> +		value is not in SI units (irradiance, uW/mm^2), then it should
> +		include _raw.
> diff --git a/include/linux/iio/types.h b/include/linux/iio/types.h
> index e250401..63d85a8 100644
> --- a/include/linux/iio/types.h
> +++ b/include/linux/iio/types.h
> @@ -46,6 +46,10 @@ enum iio_modifier {
>  	IIO_MOD_LIGHT_IR,
>  	IIO_MOD_ROOT_SUM_SQUARED_X_Y,
>  	IIO_MOD_SUM_SQUARED_X_Y_Z,
> +	IIO_MOD_LIGHT_CLEAR,
> +	IIO_MOD_LIGHT_RED,
> +	IIO_MOD_LIGHT_GREEN,
> +	IIO_MOD_LIGHT_BLUE,
>  };
>  
>  #define IIO_VAL_INT 1
> 



  reply	other threads:[~2012-07-03 19:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-01 10:20 [PATCH v3] iio: add adjd_s311 I2C digital color sensor driver Peter Meerwald
2012-07-01 10:20 ` [PATCH] iio: kernel version typo in sysfs-bus-iio Peter Meerwald
2012-07-03 20:02   ` Jonathan Cameron
2012-07-01 10:20 ` [PATCH] iio: add channel modifiers for RGBC (red/green/blue/clear) data Peter Meerwald
2012-07-03 19:52   ` Jonathan Cameron [this message]
2012-07-01 10:20 ` [PATCH] iio staging: add recently added modifiers to iio_event_monitor Peter Meerwald
2012-07-03 20:00   ` Jonathan Cameron
2012-07-02  9:28 ` [PATCH v3] iio: add adjd_s311 I2C digital color sensor driver Lars-Peter Clausen
2012-07-02  9:41   ` Lars-Peter Clausen
2012-07-02  9:55     ` Peter Meerwald

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=4FF34D60.70806@kernel.org \
    --to=jic23@kernel.org \
    --cc=jbrenner@taosinc.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.