From: Wolfram Sang Date: Mon, 24 Dec 2012 17:49:36 +0000 (-0800) Subject: Input: adxl34x - don't set THRESH_TAP twice X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1fae0315e636dd9b134d2c51b04cec912f02a6c9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Michael Hennerich Signed-off-by: Dmitry Torokhov --- 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, 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);