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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2016 08:07:38 +0000 (10:07 +0200)
commit4b90e67c84918ea4d2b0f2aa55799e08c0fb11d8
treec19b271c7d426fd63bdd98a8e6372e59e68b4238
parent58ddc4433365fa49eaf716fc811fde864d496ab3
iio: fix pressure data output unit in hid-sensor-attributes

commit 36afb176d3c9580651d7f410ed7f000ec48b5137 upstream.

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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/common/hid-sensors/hid-sensor-attributes.c