summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-10-16 19:04:31 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-10-24 18:30:03 +0100
commit63dd163cd61dda6f38343776b42331cc6b7e56e0 (patch)
tree7fa8aeb965610825deb82b2aee1786cc83d98bf2 /tools/perf/scripts/python/export-to-sqlite.py
parent369f05688911b05216cfcd6ca74473bec87948d7 (diff)
downloadlinux-63dd163cd61dda6f38343776b42331cc6b7e56e0.tar.gz
linux-63dd163cd61dda6f38343776b42331cc6b7e56e0.tar.bz2
linux-63dd163cd61dda6f38343776b42331cc6b7e56e0.zip
iio: light: veml6030: fix microlux value calculation
The raw value conversion to obtain a measurement in lux as INT_PLUS_MICRO does not calculate the decimal part properly to display it as micro (in this case microlux). It only calculates the module to obtain the decimal part from a resolution that is 10000 times the provided in the datasheet (0.5376 lux/cnt for the veml6030). The resulting value must still be multiplied by 100 to make it micro. This bug was introduced with the original implementation of the driver. Only the illuminance channel is fixed becuase the scale is non sensical for the intensity channels anyway. Cc: stable@vger.kernel.org Fixes: 7b779f573c48 ("iio: light: add driver for veml6030 ambient light sensor") Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Link: https://patch.msgid.link/20241016-veml6030-fix-processed-micro-v1-1-4a5644796437@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions