From patchwork Sat Sep 16 11:05:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Joruk X-Patchwork-Id: 9954199 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D1F2A60352 for ; Sat, 16 Sep 2017 11:13:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B96A62928E for ; Sat, 16 Sep 2017 11:13:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ABF0629293; Sat, 16 Sep 2017 11:13:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0B4C2928E for ; Sat, 16 Sep 2017 11:13:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751198AbdIPLNT (ORCPT ); Sat, 16 Sep 2017 07:13:19 -0400 Received: from relay5.mymailcheap.com ([159.100.248.207]:41896 "EHLO relay5.mymailcheap.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbdIPLNT (ORCPT ); Sat, 16 Sep 2017 07:13:19 -0400 X-Greylist: delayed 418 seconds by postgrey-1.27 at vger.kernel.org; Sat, 16 Sep 2017 07:13:18 EDT Received: from relay2.mymailcheap.com (relay2.mymailcheap.com [217.182.66.162]) by relay5.mymailcheap.com (Postfix) with ESMTPS id 16D4B26455 for ; Sat, 16 Sep 2017 11:06:19 +0000 (UTC) Received: from filter1.mymailcheap.com (filter1.mymailcheap.com [149.56.130.247]) by relay2.mymailcheap.com (Postfix) with ESMTPS id 20F613EE61; Sat, 16 Sep 2017 13:06:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by filter1.mymailcheap.com (Postfix) with ESMTP id 5AEA62A4C9; Sat, 16 Sep 2017 07:06:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mymailcheap.com; s=default; t=1505559975; bh=4OP9ElGBneBWszucBGJztNt24q7u1o5gk/955j8kLQA=; h=From:To:Cc:Subject:Date:From; b=BoT9+XLHmzNFxrrwVXc8QYCS/Ry96lcX8Onri2QNwfnNnYgL0s3KqjeYdnQBr3l1B VF+lG02mrhqG+VdAWYix14r6J97KT1eZs0U3n+zZCRQSYrnXmDjwcF5z409e8iwrWz kvWR0YvFzenOUW2JZd+Pv8R3olF9botvnKHiZ8r0= X-Virus-Scanned: Debian amavisd-new at filter1.mymailcheap.com Received: from filter1.mymailcheap.com ([127.0.0.1]) by localhost (filter1.mymailcheap.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pZjqRsGX-g88; Sat, 16 Sep 2017 07:06:14 -0400 (EDT) Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=92.222.71.234; helo=p100.mymailcheap.com; envelope-from=steven@joruk.com; receiver=michael.hennerich@analog.com Received: from p100.mymailcheap.com (p100.mymailcheap.com [92.222.71.234]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by filter1.mymailcheap.com (Postfix) with ESMTPS; Sat, 16 Sep 2017 07:06:14 -0400 (EDT) Received: from steven-laptop.localdomain (cpc125668-stre7-2-0-cust33.1-1.cable.virginm.net [86.14.246.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by p100.mymailcheap.com (Postfix) with ESMTPSA id 3654A5FA7F; Sat, 16 Sep 2017 13:06:10 +0200 (CEST) From: Steven Joruk To: michael.hennerich@analog.com, dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, Steven Joruk Subject: [PATCH] Input: adxl34x - add support for adxl343 Date: Sat, 16 Sep 2017 12:05:17 +0100 Message-Id: <20170916110517.31972-1-steven@joruk.com> X-Mailer: git-send-email 2.14.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The 343 has identical behaviour to the 345, other than having a different ID. Signed-off-by: Steven Joruk --- 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;