OSDN Git Service

iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting
authorChris Lesiak <chris.lesiak@licor.com>
Thu, 21 Nov 2019 20:39:42 +0000 (20:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 09:35:12 +0000 (10:35 +0100)
commit221123c54029af96aaf1ee896b1ab0165f712d61
treee8e0ab7f5e2000e8d915b5001df8c6db54959e47
parent88569efc8a66caa73e8c6168406f6f85aaeac432
iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting

commit 342a6928bd5017edbdae376042d8ad6af3d3b943 upstream.

The IIO_HUMIDITYRELATIVE channel was being incorrectly reported back
as percent when it should have been milli percent. This is via an
incorrect scale value being returned to userspace.

Signed-off-by: Chris Lesiak <chris.lesiak@licor.com>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/humidity/hdc100x.c