Input: adxl34x - don't set THRESH_TAP twice
authorWolfram Sang <w.sang@pengutronix.de>
Mon, 24 Dec 2012 17:49:36 +0000 (09:49 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 24 Dec 2012 17:52:38 +0000 (09:52 -0800)
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>
drivers/input/misc/adxl34x.c

index b18d3e2a6ea59f8b77b50046f794ff7f4ce091ea..6be8687de05669edf219e17e3ccf1ff828996f39 100644 (file)
@@ -827,7 +827,6 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq,
        if (err)
                goto err_remove_attr;
 
-       AC_WRITE(ac, THRESH_TAP, pdata->tap_threshold);
        AC_WRITE(ac, OFSX, pdata->x_axis_offset);
        ac->hwcal.x = pdata->x_axis_offset;
        AC_WRITE(ac, OFSY, pdata->y_axis_offset);