diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-01-03 13:08:51 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-01-22 19:58:44 +0100 |
commit | 8745465e884c06736aafc6c0e7344ac3a3c7df94 (patch) | |
tree | 9683eb5b7c4a04e4582f9b41bff0cfed31a42e0a /Documentation/netlink/specs | |
parent | Linux 6.8-rc1 (diff) | |
download | linux-8745465e884c06736aafc6c0e7344ac3a3c7df94.tar.xz linux-8745465e884c06736aafc6c0e7344ac3a3c7df94.zip |
iio: light: as73211: use IIO_VAL_FRACTIONAL for intensity scales
The scale values associated to the light channels are calculated as a
division that can be better expressed as an IIO_VAL_FRACTIONAL type
instead of the current IIO_VAL_INT.
Note that the constant values used for the calculation were scaled up to
work with integers, turning the nW/cm^2 units from the datasheet into
nW/m^2, which would not be necessary with the IIO_VAL_FRACTIONAL type.
But to avoid issues from current users of the driver, the units must be
kept.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'Documentation/netlink/specs')
0 files changed, 0 insertions, 0 deletions