diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2016-12-28 12:16:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-12 05:39:04 -0500 |
commit | 7090b8da3836ea69c79da8d71141a318269c26a8 (patch) | |
tree | f7ce8622d2236f2f12f7ef087ce1f40436428438 | |
parent | cf49219364fd1529567fba45b22eee98b4f0e6c5 (diff) |
iio: max44000: correct value in illuminance_integration_time_available
commit b4e8a0eb718749455601fa7b283febc42cca8957 upstream.
According to the datasheet, the shortest available integration time for
ALS ADC conversion is 1.5625ms but illuminance_integration_time_available
sysfs file shows wrong value.
Cc: Crestez Dan Leonard <leonard.crestez@intel.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Fixes: d5d8f49b6 ("max44000: Expose ambient sensor scaling")
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/iio/light/max44000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/max44000.c b/drivers/iio/light/max44000.c index 6511b20a2a29..a8ffa432bf0d 100644 --- a/drivers/iio/light/max44000.c +++ b/drivers/iio/light/max44000.c | |||
@@ -113,7 +113,7 @@ static const char max44000_int_time_avail_str[] = | |||
113 | "0.100 " | 113 | "0.100 " |
114 | "0.025 " | 114 | "0.025 " |
115 | "0.00625 " | 115 | "0.00625 " |
116 | "0.001625"; | 116 | "0.0015625"; |
117 | 117 | ||
118 | /* Available scales (internal to ulux) with pretty manual alignment: */ | 118 | /* Available scales (internal to ulux) with pretty manual alignment: */ |
119 | static const int max44000_scale_avail_ulux_array[] = { | 119 | static const int max44000_scale_avail_ulux_array[] = { |