summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorNarcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>2017-12-06 18:57:58 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-03 17:58:43 +0100
commitb82021cb0001e6b8b0cd4b7cb8369b95bf22e472 (patch)
tree5124d503e5870e9963cf6ded6298930b97cf4d53 /.gitignore
parentce868fb5d84b233ca50ede08a604a40b4fce181b (diff)
downloadtalos-op-linux-b82021cb0001e6b8b0cd4b7cb8369b95bf22e472.tar.gz
talos-op-linux-b82021cb0001e6b8b0cd4b7cb8369b95bf22e472.zip
iio: chemical: ccs811: Fix output of IIO_CONCENTRATION channels
commit 8f114acd4e1a9cfa05b70bcc4219bc88197b5c9b upstream. in_concentration_raw should report, according to sysfs-bus-iio documentation, a "Raw (unscaled no offset etc.) percentage reading of a substance." Modify scale to convert from ppm/ppb to percentage: 1 ppm = 0.0001% 1 ppb = 0.0000001% There is no offset needed to convert the ppm/ppb to percentage, so remove offset from IIO_CONCENTRATION (IIO_MOD_CO2) channel. Cc'd stable to reduce chance of userspace breakage in the long run as we fix this wrong bit of ABI usage. Signed-off-by: Narcisa Ana Maria Vasile <narcisaanamaria12@gmail.com> Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud