iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting
commit6e1536f5c50229490ac3bcf0a4007937aa924e6e
authorChris Lesiak <chris.lesiak@licor.com>
Thu, 21 Nov 2019 20:39:42 +0000 (21 20:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 18:55:42 +0000 (17 19:55 +0100)
tree68bf0a043b8bcdf8228a3786a8a913fc70845188
parent9c58162eedbf66e965e49a29c3a3f7ff8bf48c51
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