Input: edt-ft5x06 - fix setting gain, offset, and threshold via device tree
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 9 Feb 2016 17:32:42 +0000 (09:32 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 9 Feb 2016 23:36:20 +0000 (15:36 -0800)
commitdc262dfaaeda7617ae0b15b5ce1252a6cd102b19
treeef65d6b25357273ef5938b10e2b3325dab636135
parentd4f1b06d685d11ebdaccf11c0db1cb3c78736862
Input: edt-ft5x06 - fix setting gain, offset, and threshold via device tree

A recent patch broke parsing the gain, offset, and threshold parameters
from device tree. Instead of setting the cached values and writing them
to the correct registers during probe, it would write the values from DT
into the register address variables and never write them to the chip
during normal operation.

Fixes: 2e23b7a96372 ("Input: edt-ft5x06 - use generic properties API")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/edt-ft5x06.c