From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754209AbcICQK6 (ORCPT ); Sat, 3 Sep 2016 12:10:58 -0400 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:45114 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754115AbcICQK4 (ORCPT ); Sat, 3 Sep 2016 12:10:56 -0400 Subject: Re: [PATCH] iio: fix pressure data output unit in hid-sensor-attributes To: "Pandruvada, Srinivas" , "jikos@kernel.org" , "Kweh, Hock Leong" References: <1472467856-14526-1-git-send-email-hock.leong.kweh@intel.com> <1472586592.5025.3.camel@intel.com> Cc: "Lay, Kuan Loon" , "linux-kernel@vger.kernel.org" , "lars@metafoo.de" , "knaack.h@gmx.de" , "Ong, Boon Leong" , "linux-iio@vger.kernel.org" , "pmeerw@pmeerw.net" , "Ooi, Joyce" , "linux-input@vger.kernel.org" , "Lim, Lee Booi" From: Jonathan Cameron Message-ID: <768770a0-978a-cef3-23a8-929e63a5c414@kernel.org> Date: Sat, 3 Sep 2016 17:10:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1472586592.5025.3.camel@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/08/16 20:49, Pandruvada, Srinivas wrote: > On Mon, 2016-08-29 at 18:50 +0800, Kweh, Hock Leong wrote: >> From: "Kweh, Hock Leong" >> >> According to IIO ABI definition, IIO_PRESSURE data output unit is >> kilopascal: >> http://lxr.free-electrons.com/source/Documentation/ABI/testing/sysfs- >> bus-iio >> >> This patch fix output unit of HID pressure sensor IIO driver from >> pascal to >> kilopascal to follow IIO ABI definition. >> >> Signed-off-by: Kweh, Hock Leong > Reviewed-by: Srinivas Pandruvada Thanks, Applied to the fixes-togreg branch of iio.git and marked for stable. Jonathan > >> --- >> .../iio/common/hid-sensors/hid-sensor-attributes.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/iio/common/hid-sensors/hid-sensor-attributes.c >> b/drivers/iio/common/hid-sensors/hid-sensor-attributes.c >> index e81f434..dc33c1d 100644 >> --- a/drivers/iio/common/hid-sensors/hid-sensor-attributes.c >> +++ b/drivers/iio/common/hid-sensors/hid-sensor-attributes.c >> @@ -56,8 +56,8 @@ static struct { >> {HID_USAGE_SENSOR_ALS, 0, 1, 0}, >> {HID_USAGE_SENSOR_ALS, HID_USAGE_SENSOR_UNITS_LUX, 1, 0}, >> >> - {HID_USAGE_SENSOR_PRESSURE, 0, 100000, 0}, >> - {HID_USAGE_SENSOR_PRESSURE, HID_USAGE_SENSOR_UNITS_PASCAL, >> 1, 0}, >> + {HID_USAGE_SENSOR_PRESSURE, 0, 100, 0}, >> + {HID_USAGE_SENSOR_PRESSURE, HID_USAGE_SENSOR_UNITS_PASCAL, >> 0, 1000}, >> }; >> >> static int pow_10(unsigned power)