Re: [PATCH] iio: hid-sensor-prox: Fix scale not correct issue

2021-01-23 Thread Jonathan Cameron
On Wed, 20 Jan 2021 15:49:35 +0800 Ye Xiang wrote: > Currently, the proxy sensor scale is zero because it just return the > exponent directly. To fix this issue, this patch use > hid_sensor_format_scale to process the scale first then return the > output. > > Signed-off-by: Ye Xiang Fixes tag

[PATCH] iio: hid-sensor-prox: Fix scale not correct issue

2021-01-19 Thread Ye Xiang
Currently, the proxy sensor scale is zero because it just return the exponent directly. To fix this issue, this patch use hid_sensor_format_scale to process the scale first then return the output. Signed-off-by: Ye Xiang --- drivers/iio/light/hid-sensor-prox.c | 13 +++-- 1 file