aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2012-12-24 12:49:36 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-12-24 12:52:38 -0500
commit1fae0315e636dd9b134d2c51b04cec912f02a6c9 (patch)
treeb502d00760051cd97238b4fc848e29c00ed2476e
parentad4e58b0478ba8d34a3ddf695b3ceabe9510a839 (diff)
Input: adxl34x - don't set THRESH_TAP twice
The datasheet doesn't say anything about writing twice, so this was probably overlooked. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/misc/adxl34x.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/adxl34x.c b/drivers/input/misc/adxl34x.c
index b18d3e2a6ea5..6be8687de056 100644
--- a/drivers/input/misc/adxl34x.c
+++ b/drivers/input/misc/adxl34x.c
@@ -827,7 +827,6 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq,
827 if (err) 827 if (err)
828 goto err_remove_attr; 828 goto err_remove_attr;
829 829
830 AC_WRITE(ac, THRESH_TAP, pdata->tap_threshold);
831 AC_WRITE(ac, OFSX, pdata->x_axis_offset); 830 AC_WRITE(ac, OFSX, pdata->x_axis_offset);
832 ac->hwcal.x = pdata->x_axis_offset; 831 ac->hwcal.x = pdata->x_axis_offset;
833 AC_WRITE(ac, OFSY, pdata->y_axis_offset); 832 AC_WRITE(ac, OFSY, pdata->y_axis_offset);