All of lore.kernel.org
 help / color / mirror / Atom feed
From: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
To: Shubhrajyoti Datta <omaplinuxkernel@gmail.com>
Cc: "jic23@cam.ac.uk" <jic23@cam.ac.uk>,
	"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
	"linus.walleij@linaro.org" <linus.walleij@linaro.org>
Subject: Re: [PATCH] staging: iio: add lsm303dlh magnetometer driver
Date: Tue, 17 Apr 2012 12:17:56 +0530	[thread overview]
Message-ID: <20120417064755.GA902@bnru02> (raw)
In-Reply-To: <CAM=Q2csOWte=C3iDrqBsKxrb-Yg4Ne-1kS+79iCaMVua1iDUBQ@mail.gmail.com>

On Tue, Apr 17, 2012 at 08:29:36 +0200, Shubhrajyoti Datta wrote:
> Hi Srinidhi,
> 
> On Mon, Apr 9, 2012 at 5:04 PM, Srinidhi KASAGAR
> <srinidhi.kasagar@stericsson.com> wrote:
> > Add support for lsm303dlh magnetometer device.
> >
> > Signed-off-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com>
> > Acked-by: Linus Walleij <linus.walleij@linaro.org>
> > ---

[...]

> > diff --git a/drivers/staging/iio/magnetometer/lsm303dlh.c b/drivers/staging/iio/magnetometer/lsm303dlh.c
> > new file mode 100644
> > index 0000000..4b23083
> > --- /dev/null
> > +++ b/drivers/staging/iio/magnetometer/lsm303dlh.c
> > @@ -0,0 +1,803 @@
> > +/*
> > + * Copyright (C) ST-Ericsson SA 2012
> > + * License Terms: GNU General Public License, version 2
> > + *
> > + * This code is mostly based on hmc5843 driver
> > + *
> 
> How different is it from the hmc5843 driver Can we add support in the
> hmc driver itself?
The device differs from hmc in many ways, for example, it has a higher
range upto +/- 8.1 gauss, and has separate gain controls for X/Y and Z.
Since both are different devices, with different capabilities, i don't
think we can merge them together.

The lsm303dlh datahsheet is available here
http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00260288.pdf

However this has been superseded with "lsm303dlhc" version, will add
support to this version too later, though they are trivial..
http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/DM00027543.pdf

srinidhi

  reply	other threads:[~2012-04-17  6:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09 11:34 [PATCH] staging: iio: add lsm303dlh magnetometer driver Srinidhi KASAGAR
2012-04-09 17:50 ` Linus Walleij
2012-04-09 18:04   ` Jonathan Cameron
2012-04-09 20:51 ` Jonathan Cameron
2012-04-13 11:09   ` Srinidhi Kasagar
2012-04-13 13:55     ` Jonathan Cameron
2012-04-17  6:01   ` Srinidhi Kasagar
2012-04-17  6:14     ` Jonathan Cameron
2012-04-17  6:29 ` Shubhrajyoti Datta
2012-04-17  6:47   ` Srinidhi Kasagar [this message]
2012-04-17  7:22     ` Jonathan Cameron

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=20120417064755.GA902@bnru02 \
    --to=srinidhi.kasagar@stericsson.com \
    --cc=jic23@cam.ac.uk \
    --cc=linus.walleij@linaro.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=omaplinuxkernel@gmail.com \
    /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.