From: Jonathan Cameron <jic23@kernel.org>
To: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH 1/2] Documentation: iio: Clarify meaning of IIO_DISTANCE channel type
Date: Sat, 14 Oct 2017 18:19:31 +0100 [thread overview]
Message-ID: <20171014181931.44390c11@archlinux> (raw)
In-Reply-To: <20171010134847.2175-1-pmeerw@pmeerw.net>
On Tue, 10 Oct 2017 15:48:46 +0200
Peter Meerwald-Stadler <pmeerw@pmeerw.net> wrote:
> IIO_DISTANCE is used for two purposes: for pedometers to record the
> distance covered by a walker, and to measure the distance to an object
>
> IIO_DISTANCE is in meters while IIO_PROXIMITY is a unitless measure
> indirectly proportional to distance (higher value relates to a closer
> object)
>
> Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Hmm. This is clearly an issue for at least one existing driver - in that
the lightening sensor uses proximity for distance to lightening.
However, this is the most common interpretation now. I would suggest
our best way forward is to add a distance channel to the lightening
driver, but keep the proximity channel there to avoid breaking userspace.
Anyhow, this patch itself is fine.
Applied to the togreg branch of iio.git and pushed out as testing
for the autobuilders to completely ignore.
> ---
> Documentation/ABI/testing/sysfs-bus-iio | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
> index 7eead5f97e02..3fc79185cc56 100644
> --- a/Documentation/ABI/testing/sysfs-bus-iio
> +++ b/Documentation/ABI/testing/sysfs-bus-iio
> @@ -1242,9 +1242,9 @@ What: /sys/.../iio:deviceX/in_distance_raw
> KernelVersion: 4.0
> Contact: linux-iio@vger.kernel.org
> Description:
> - This attribute is used to read the distance covered by the user
> - since the last reboot while activated. Units after application
> - of scale are meters.
> + This attribute is used to read the measured distance to an object
> + or the distance covered by the user since the last reboot while
> + activated. Units after application of scale are meters.
>
> What: /sys/bus/iio/devices/iio:deviceX/store_eeprom
> KernelVersion: 3.4.0
prev parent reply other threads:[~2017-10-14 17:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-10 13:48 [PATCH 1/2] Documentation: iio: Clarify meaning of IIO_DISTANCE channel type Peter Meerwald-Stadler
2017-10-10 13:48 ` [PATCH 2/2] iio: proximity: Add rfd77402 driver Peter Meerwald-Stadler
2017-10-14 17:28 ` Jonathan Cameron
2017-10-14 17:19 ` 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=20171014181931.44390c11@archlinux \
--to=jic23@kernel.org \
--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.