From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Steven Joruk <steven@joruk.com>
Cc: michael.hennerich@analog.com, linux-input@vger.kernel.org
Subject: Re: [PATCH] Input: adxl34x - add support for adxl343
Date: Wed, 20 Sep 2017 12:12:44 -0700 [thread overview]
Message-ID: <20170920191244.GA6770@dtor-ws> (raw)
In-Reply-To: <20170916110517.31972-1-steven@joruk.com>
On Sat, Sep 16, 2017 at 12:05:17PM +0100, Steven Joruk wrote:
> The 343 has identical behaviour to the 345, other than having a
> different ID.
>
> Signed-off-by: Steven Joruk <steven@joruk.com>
Applied, thank you.
> ---
> drivers/input/misc/adxl34x.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/input/misc/adxl34x.c b/drivers/input/misc/adxl34x.c
> index 2b2d02f408bb..fe76878c5c76 100644
> --- a/drivers/input/misc/adxl34x.c
> +++ b/drivers/input/misc/adxl34x.c
> @@ -57,6 +57,7 @@
> #define ORIENT 0x3C /* R Orientation status */
>
> /* DEVIDs */
> +#define ID_ADXL343 0xFB
> #define ID_ADXL345 0xE5
> #define ID_ADXL346 0xE6
>
> @@ -734,6 +735,9 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq,
> revid = AC_READ(ac, DEVID);
>
> switch (revid) {
> + case ID_ADXL343:
> + ac->model = 343;
> + break;
> case ID_ADXL345:
> ac->model = 345;
> break;
> --
> 2.14.1
>
--
Dmitry
prev parent reply other threads:[~2017-09-20 19:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-16 11:05 [PATCH] Input: adxl34x - add support for adxl343 Steven Joruk
2017-09-20 19:12 ` Dmitry Torokhov [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=20170920191244.GA6770@dtor-ws \
--to=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=michael.hennerich@analog.com \
--cc=steven@joruk.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.