]> git.baikalelectronics.ru Git - kernel.git/commit
iio: fix pressure data output unit in hid-sensor-attributes
authorKweh, Hock Leong <hock.leong.kweh@intel.com>
Mon, 29 Aug 2016 10:50:56 +0000 (18:50 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Sep 2016 16:09:58 +0000 (17:09 +0100)
commitdb18ade78abae06b81d67e1a07967a89e4d23701
tree0588ba60dbdcd297e8ea9ef54b91730973440d15
parentaa5f9b54657ddc6b04909620e303d72cfd25d8b4
iio: fix pressure data output unit in hid-sensor-attributes

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 <hock.leong.kweh@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/hid-sensors/hid-sensor-attributes.c