All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: Dragos Bogdan <dragos.bogdan@analog.com>,
	Michael Hennerich <Michael.Hennerich@analog.com>,
	Hartmut Knaack <knaack.h@gmx.de>,
	Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iio: imu: adis16480: Fix acceleration scale factor for adis16480
Date: Wed, 9 Aug 2017 15:38:34 +0100	[thread overview]
Message-ID: <20170809153834.7f9cf637@archlinux> (raw)
In-Reply-To: <e34f87db-694c-e83e-5ee8-ff93d4f63e39@metafoo.de>

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,
> >   
> 


      reply	other threads:[~2017-08-09 14:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170809153834.7f9cf637@archlinux \
    --to=jic23@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=dragos.bogdan@analog.com \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.