Re: [PATCH 01/18] staging:iio:hmc5843: Fix measurement conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/03/2013 03:05 AM, Peter Meerwald wrote:
recently broken, cd6fe06588423ff4cca85c85c4402027b04dccf1

When referring to a commit usually the commit title is also mentioned after the commit id. E.g. 12345678 ("abc foobar")


Signed-off-by: Peter Meerwald <pmeerw@xxxxxxxxxx>
---
  drivers/staging/iio/magnetometer/hmc5843.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/iio/magnetometer/hmc5843.c b/drivers/staging/iio/magnetometer/hmc5843.c
index d2748c3..c3f3f53 100644
--- a/drivers/staging/iio/magnetometer/hmc5843.c
+++ b/drivers/staging/iio/magnetometer/hmc5843.c
@@ -229,7 +229,7 @@ static int hmc5843_read_measurement(struct iio_dev *indio_dev,
  	if (result < 0)
  		return -EINVAL;

-	*val = result;
+	*val = sign_extend32(result, 15);
  	return IIO_VAL_INT;
  }



--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux