]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit36afb176d3c9580651d7f410ed7f000ec48b5137
tree0588ba60dbdcd297e8ea9ef54b91730973440d15
parentf8e81d7e496ea89f377c6935b92022032bed62e5
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