Files
linux/drivers
Ye Xiang 75a4fdb129 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>
2021-04-16 11:59:05 +02:00
..
2021-03-03 17:44:32 +01:00
2021-04-10 13:04:44 +02:00
2020-12-29 13:45:00 +01:00
2021-03-07 11:25:57 +01:00
2021-04-07 12:05:39 +02:00
2020-02-28 15:42:33 +01:00