linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iio: imu: adis16480: Fix acceleration scale factor for adis16480
@ 2017-08-03 22:37 Dragos Bogdan
  2017-08-04  3:49 ` Lars-Peter Clausen
  0 siblings, 1 reply; 3+ messages in thread
From: Dragos Bogdan @ 2017-08-03 22:37 UTC (permalink / raw)
  To: Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron
  Cc: Hartmut Knaack, Peter Meerwald-Stadler, linux-iio, linux-kernel,
	Dragos Bogdan

According to the datasheet, the range of the acceleration is [-10 g, + 10 g],
so the scale factor should be 10 instead of 5.

Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
---
 drivers/iio/imu/adis16480.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c
index 8cf84d3488b2..12898424d838 100644
--- a/drivers/iio/imu/adis16480.c
+++ b/drivers/iio/imu/adis16480.c
@@ -696,7 +696,7 @@ static const struct adis16480_chip_info adis16480_chip_info[] = {
 		.gyro_max_val = IIO_RAD_TO_DEGREE(22500),
 		.gyro_max_scale = 450,
 		.accel_max_val = IIO_M_S_2_TO_G(12500),
-		.accel_max_scale = 5,
+		.accel_max_scale = 10,
 	},
 	[ADIS16485] = {
 		.channels = adis16485_channels,
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: imu: adis16480: Fix acceleration scale factor for adis16480
  2017-08-03 22:37 [PATCH] iio: imu: adis16480: Fix acceleration scale factor for adis16480 Dragos Bogdan
@ 2017-08-04  3:49 ` Lars-Peter Clausen
  2017-08-09 14:38   ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Lars-Peter Clausen @ 2017-08-04  3:49 UTC (permalink / raw)
  To: Dragos Bogdan, Michael Hennerich, Jonathan Cameron
  Cc: Hartmut Knaack, Peter Meerwald-Stadler, linux-iio, linux-kernel

On 08/04/2017 12:37 AM, Dragos Bogdan wrote:
> According to the datasheet, the range of the acceleration is [-10 g, + 10 g],
> so the scale factor should be 10 instead of 5.
> 
> Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>

Acked-by: Lars-Peter Clausen <lars@metafoo.de>

Thanks.

> ---
>  drivers/iio/imu/adis16480.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c
> index 8cf84d3488b2..12898424d838 100644
> --- a/drivers/iio/imu/adis16480.c
> +++ b/drivers/iio/imu/adis16480.c
> @@ -696,7 +696,7 @@ static const struct adis16480_chip_info adis16480_chip_info[] = {
>  		.gyro_max_val = IIO_RAD_TO_DEGREE(22500),
>  		.gyro_max_scale = 450,
>  		.accel_max_val = IIO_M_S_2_TO_G(12500),
> -		.accel_max_scale = 5,
> +		.accel_max_scale = 10,
>  	},
>  	[ADIS16485] = {
>  		.channels = adis16485_channels,
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: imu: adis16480: Fix acceleration scale factor for adis16480
  2017-08-04  3:49 ` Lars-Peter Clausen
@ 2017-08-09 14:38   ` Jonathan Cameron
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2017-08-09 14:38 UTC (permalink / raw)
  To: Lars-Peter Clausen
  Cc: Dragos Bogdan, Michael Hennerich, Hartmut Knaack,
	Peter Meerwald-Stadler, linux-iio, linux-kernel

On Fri, 4 Aug 2017 05:49:32 +0200
Lars-Peter Clausen <lars@metafoo.de> wrote:

> On 08/04/2017 12:37 AM, Dragos Bogdan wrote:
> > According to the datasheet, the range of the acceleration is [-10 g, + 10 g],
> > so the scale factor should be 10 instead of 5.
> > 
> > Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>  
> 
> Acked-by: Lars-Peter Clausen <lars@metafoo.de>
> 
> Thanks.
Applied to the fixes-togreg branch of iio.git and marked for stable.

Thanks,

Jonathan
> 
> > ---
> >  drivers/iio/imu/adis16480.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c
> > index 8cf84d3488b2..12898424d838 100644
> > --- a/drivers/iio/imu/adis16480.c
> > +++ b/drivers/iio/imu/adis16480.c
> > @@ -696,7 +696,7 @@ static const struct adis16480_chip_info adis16480_chip_info[] = {
> >  		.gyro_max_val = IIO_RAD_TO_DEGREE(22500),
> >  		.gyro_max_scale = 450,
> >  		.accel_max_val = IIO_M_S_2_TO_G(12500),
> > -		.accel_max_scale = 5,
> > +		.accel_max_scale = 10,
> >  	},
> >  	[ADIS16485] = {
> >  		.channels = adis16485_channels,
> >   
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-09 14:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-03 22:37 [PATCH] iio: imu: adis16480: Fix acceleration scale factor for adis16480 Dragos Bogdan
2017-08-04  3:49 ` Lars-Peter Clausen
2017-08-09 14:38   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).