]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit593c4968a8c507e6a3686b4d432770fc1ce9cec1
treeef65d6b25357273ef5938b10e2b3325dab636135
parent4c0691ecfe6a8d22c6d22cf0f75942da32113157
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: ae60b13c05a9 ("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