linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: adxl34x - add support for adxl343
@ 2017-09-16 11:05 Steven Joruk
  2017-09-20 19:12 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Joruk @ 2017-09-16 11:05 UTC (permalink / raw)
  To: michael.hennerich, dmitry.torokhov; +Cc: linux-input, Steven Joruk

The 343 has identical behaviour to the 345, other than having a
different ID.

Signed-off-by: Steven Joruk <steven@joruk.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-20 19:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-16 11:05 [PATCH] Input: adxl34x - add support for adxl343 Steven Joruk
2017-09-20 19:12 ` Dmitry Torokhov

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).