Files
linux/drivers
Ye Xiang eef0ca3b2d iio: hid-sensor-prox: Fix scale not correct issue
commit d68c592e02 upstream

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.

Fixes: 39a3a0138f ("iio: hid-sensors: Added Proximity Sensor Driver")
Signed-off-by: Ye Xiang <xiang.ye@intel.com>
Link: https://lore.kernel.org/r/20210130102530.31064-1-xiang.ye@intel.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
[sudip: adjust context]
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-16 10:51:19 +09:00
..
2023-05-12 16:27:16 +09:00
2023-05-16 10:36:45 +09:00
2023-05-15 12:46:28 +09:00
2023-05-16 10:50:24 +09:00
2023-05-16 09:58:13 +09:00
2023-05-15 10:37:00 +09:00
2023-05-15 09:23:01 +09:00
2023-05-16 10:40:01 +09:00
2023-05-15 08:28:33 +09:00
2023-05-16 10:49:47 +09:00
2023-05-15 16:59:11 +09:00