Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1703631 > unrolled thread

Re: [PATCH] iio: imu: adis16480: Fix acceleration scale factor for adis16480

Started byLars-Peter Clausen <lars@metafoo.de>
First post2017-08-04 05:50 +0200
Last post2017-08-09 16:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] iio: imu: adis16480: Fix acceleration scale factor for  adis16480 Lars-Peter Clausen <lars@metafoo.de> - 2017-08-04 05:50 +0200
    Re: [PATCH] iio: imu: adis16480: Fix acceleration scale factor for  adis16480 Jonathan Cameron <jic23@kernel.org> - 2017-08-09 16:40 +0200

#1703631 — Re: [PATCH] iio: imu: adis16480: Fix acceleration scale factor for adis16480

FromLars-Peter Clausen <lars@metafoo.de>
Date2017-08-04 05:50 +0200
SubjectRe: [PATCH] iio: imu: adis16480: Fix acceleration scale factor for adis16480
Message-ID<uaBMB-1A5-5@gated-at.bofh.it>
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,
> 

[toc] | [next] | [standalone]


#1707377

FromJonathan Cameron <jic23@kernel.org>
Date2017-08-09 16:40 +0200
Message-ID<ucAjo-bt-15@gated-at.bofh.it>
In reply to#1703631
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,
> >   
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web