Re: [PATCH] iio: Fixed IIO_VAL_FRACTIONAL calcuation for negative values

2020-08-22 Thread Jonathan Cameron
On Thu, 20 Aug 2020 11:09:44 -0700 Anand Ashok Dumbre wrote: > This patch fixes IIO_VAL_FRACTIONAL calculation for negative > values where the exponent is 0. > > Signed-off-by: Anand Ashok Dumbre Hi, I would thrown in an example for this description. Also useful to know if there is a existing

[PATCH] iio: Fixed IIO_VAL_FRACTIONAL calcuation for negative values

2020-08-20 Thread Anand Ashok Dumbre
This patch fixes IIO_VAL_FRACTIONAL calculation for negative values where the exponent is 0. Signed-off-by: Anand Ashok Dumbre --- drivers/iio/industrialio-core.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industri

Re: [PATCH] iio: Fixed IIO_VAL_FRACTIONAL calcuation for negative values

2020-08-20 Thread Andy Shevchenko
On Thu, Aug 20, 2020 at 11:32 AM Anand Ashok Dumbre wrote: > This email and any attachments are intended for the sole use of the named > recipient(s) and contain(s) confidential information that may be proprietary, > privileged or copyrighted under applicable law. If you are not the intended >

[PATCH] iio: Fixed IIO_VAL_FRACTIONAL calcuation for negative values

2020-08-20 Thread Anand Ashok Dumbre
This patch fixes IIO_VAL_FRACTIONAL calculation for negative values where the exponent is 0. Signed-off-by: Anand Ashok Dumbre --- drivers/iio/industrialio-core.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industri