From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from saturn.retrosnub.co.uk ([178.18.118.26]:45430 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754164Ab3LCUMq (ORCPT ); Tue, 3 Dec 2013 15:12:46 -0500 Message-ID: <529E3B3D.9080204@kernel.org> Date: Tue, 03 Dec 2013 20:12:45 +0000 From: Jonathan Cameron MIME-Version: 1.0 To: Harald Geyer CC: linux-iio@vger.kernel.org Subject: Re: [PATCH v3 1/2] iio: Add support for humidity sensors References: <5267E795.7030804@metafoo.de> <52909438.8000602@kernel.org> <5292474A.8040101@kernel.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org On 12/01/13 15:08, Harald Geyer wrote: > There are already humidity sensors in the hwmon subsystem, > so we use their unit (milli percent) here as well. > > Signed-off-by: Harald Geyer Applied to the togreg branch of iio.git (push out as testing for the autobuilders to run against) > --- > > No changes since v2 except for > KernelVersion: 3.14 > > No changes since v1. > > Documentation/ABI/testing/sysfs-bus-iio | 13 +++++++++++++ > drivers/iio/industrialio-core.c | 1 + > include/linux/iio/types.h | 1 + > 3 files changed, 15 insertions(+), 0 deletions(-) > > diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio > index b20e829..25aebeb 100644 > --- a/Documentation/ABI/testing/sysfs-bus-iio > +++ b/Documentation/ABI/testing/sysfs-bus-iio > @@ -197,6 +197,19 @@ Description: > Raw pressure measurement from channel Y. Units after > application of scale and offset are kilopascal. > > +What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_raw > +KernelVersion: 3.14 > +Contact: linux-iio@vger.kernel.org > +Description: > + Raw humidity measurement of air. Units after application of > + scale and offset are milli percent. > + > +What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_input > +KernelVersion: 3.14 > +Contact: linux-iio@vger.kernel.org > +Description: > + Scaled humidity measurement in milli percent. > + > What: /sys/bus/iio/devices/iio:deviceX/in_accel_offset > What: /sys/bus/iio/devices/iio:deviceX/in_accel_x_offset > What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_offset > diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c > index 2fe88c1..acc911a 100644 > --- a/drivers/iio/industrialio-core.c > +++ b/drivers/iio/industrialio-core.c > @@ -69,6 +69,7 @@ static const char * const iio_chan_type_name_spec[] = { > [IIO_ALTVOLTAGE] = "altvoltage", > [IIO_CCT] = "cct", > [IIO_PRESSURE] = "pressure", > + [IIO_HUMIDITYRELATIVE] = "humidityrelative", > }; > > static const char * const iio_modifier_names[] = { > diff --git a/include/linux/iio/types.h b/include/linux/iio/types.h > index 4ac928e..084d882 100644 > --- a/include/linux/iio/types.h > +++ b/include/linux/iio/types.h > @@ -29,6 +29,7 @@ enum iio_chan_type { > IIO_ALTVOLTAGE, > IIO_CCT, > IIO_PRESSURE, > + IIO_HUMIDITYRELATIVE, > }; > > enum iio_modifier { >