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: 39a3a0138f61 ("iio: hid-sensors: Added Proximity Sensor Driver")
Signed-off-by: Ye Xiang <redacted>
---
v2:
- Add Fixes tag
---
drivers/iio/light/hid-sensor-prox.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
From: Jonathan Cameron <jic23@kernel.org> Date: 2021-01-30 19:15:18
On Sat, 30 Jan 2021 18:25:30 +0800
Ye Xiang [off-list ref] 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.
Fixes: 39a3a0138f61 ("iio: hid-sensors: Added Proximity Sensor Driver")
Signed-off-by: Ye Xiang <redacted>
Hi Ye Xiang,
There was a bit of fuzz on this so please take a look at
my fixes-togreg branch and check it went in cleanly.
From: Ye, Xiang <hidden> Date: 2021-01-31 07:16:49
On Sat, Jan 30, 2021 at 07:14:29PM +0000, Jonathan Cameron wrote:
On Sat, 30 Jan 2021 18:25:30 +0800
Ye Xiang [off-list ref] wrote:
quoted
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: 39a3a0138f61 ("iio: hid-sensors: Added Proximity Sensor Driver")
Signed-off-by: Ye Xiang <redacted>
Hi Ye Xiang,
There was a bit of fuzz on this so please take a look at
my fixes-togreg branch and check it went in cleanly.
From: Ye, Xiang <hidden> Date: 2021-01-31 07:36:51
On Sat, Jan 30, 2021 at 07:14:29PM +0000, Jonathan Cameron wrote:
On Sat, 30 Jan 2021 18:25:30 +0800
Ye Xiang [off-list ref] wrote:
quoted
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: 39a3a0138f61 ("iio: hid-sensors: Added Proximity Sensor Driver")
Signed-off-by: Ye Xiang <redacted>
Hi Ye Xiang,
There was a bit of fuzz on this so please take a look at
my fixes-togreg branch and check it went in cleanly.
Have checked fixes-toreg branch, the patch it's correct.
Thanks
Ye Xiang