From: Jonathan Cameron <jic23@kernel.org>
To: Brian Masney <masneyb@onstation.org>
Cc: gregkh@linuxfoundation.org, linux-iio@vger.kernel.org,
devel@driverdev.osuosl.org
Subject: Re: [PATCH 1/4] staging: iio: isl29018: add documentation about the infrared suppression
Date: Sun, 9 Oct 2016 09:43:30 +0100 [thread overview]
Message-ID: <f6c89f7b-b048-a119-c3d2-080715bb271a@kernel.org> (raw)
In-Reply-To: <1475801317-29449-1-git-send-email-masneyb@onstation.org>
On 07/10/16 01:48, Brian Masney wrote:
> Add documentation from the ISL29018 Data Sheet (FN6619.4, Oct 8, 2012)
> about the infrared suppression that can be controlled
> with the proximity_on_chip_ambient_infrared_suppression sysfs attribute.
>
> Signed-off-by: Brian Masney <masneyb@onstation.org>
> ---
> drivers/staging/iio/light/isl29018.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c
> index 51226bd..52bfb1cb 100644
> --- a/drivers/staging/iio/light/isl29018.c
> +++ b/drivers/staging/iio/light/isl29018.c
> @@ -307,6 +307,24 @@ static ssize_t in_illuminance_integration_time_available_show
> return len;
> }
>
> +/*
> + * From ISL29018 Data Sheet (FN6619.4, Oct 8, 2012) regarding the
> + * infrared suppression:
> + *
> + * Proximity Sensing Scheme: Bit 7. This bit programs the function
> + * of the proximity detection. Logic 0 of this bit, Scheme 0, makes
> + * full n (4, 8, 12, 16) bits (unsigned) proximity detection. The range
> + * of Scheme 0 proximity count is from 0 to 2^n. Logic 1 of this bit,
> + * Scheme 1, makes n-1 (3, 7, 11, 15) bits (2's complementary)
> + * proximity_less_ambient detection. The range of Scheme 1
> + * proximity count is from -2^(n-1) to 2^(n-1) . The sign bit is extended
> + * for resolutions less than 16. While Scheme 0 has wider dynamic
> + * range, Scheme 1 proximity detection is less affected by the
> + * ambient IR noise variation.
> + *
> + * 0 Sensing IR from LED and ambient
> + * 1 Sensing IR from LED with ambient IR rejection
> + */
Hi Brian,
This is good stuff, but the home of ABI docs (where it 'has' to be as
opposed to here where it is nice to have) is
Documentation/ABI/testing/sysfs-bus-iio-* (here isl29018 until we
see if this becomes generic enough to promote to a more generic file)
Jonathan
> static ssize_t proximity_on_chip_ambient_infrared_suppression_show
> (struct device *dev, struct device_attribute *attr,
> char *buf)
>
next prev parent reply other threads:[~2016-10-09 8:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-07 0:48 [PATCH 1/4] staging: iio: isl29018: add documentation about the infrared suppression Brian Masney
2016-10-07 0:48 ` [PATCH 2/4] staging: iio: isl29018: document device tree bindings Brian Masney
2016-10-09 8:48 ` Jonathan Cameron
2016-10-09 8:48 ` Jonathan Cameron
2016-10-07 0:48 ` [PATCH 3/4] staging: iio: isl29018: rename Kconfig variable to match existing light drivers in mainline Brian Masney
2016-10-09 10:33 ` Jonathan Cameron
2016-10-07 0:48 ` [PATCH 4/4] staging: iio: isl29018: move out of staging Brian Masney
2016-10-09 9:45 ` Jonathan Cameron
2016-10-09 10:35 ` Brian Masney
2016-10-09 10:39 ` Jonathan Cameron
2016-10-09 8:43 ` Jonathan Cameron [this message]
2016-10-09 8:51 ` [PATCH 1/4] staging: iio: isl29018: add documentation about the infrared suppression 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=f6c89f7b-b048-a119-c3d2-080715bb271a@kernel.org \
--to=jic23@kernel.org \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-iio@vger.kernel.org \
--cc=masneyb@onstation.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 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.