From: Jonathan Cameron <jic23@cam.ac.uk>
To: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Cc: Shubhrajyoti Datta <omaplinuxkernel@gmail.com>,
"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 08:22:33 +0100 [thread overview]
Message-ID: <4F8D1A39.6090508@cam.ac.uk> (raw)
In-Reply-To: <20120417064755.GA902@bnru02>
On 4/17/2012 7:47 AM, Srinidhi Kasagar wrote:
> 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
Thanks for the clear references. For two superficially similar devices
there are an
awful lot of differences in the register set. They could be merged,
but my gut
feeling is that they will be easier to maintain as two separate drivers.
Jonathan
prev parent reply other threads:[~2012-04-17 7:22 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
2012-04-17 7:22 ` 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=4F8D1A39.6090508@cam.ac.uk \
--to=jic23@cam.ac.uk \
--cc=linus.walleij@linaro.org \
--cc=linux-iio@vger.kernel.org \
--cc=omaplinuxkernel@gmail.com \
--cc=srinidhi.kasagar@stericsson.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 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).