]> 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)
commit412d131fc49d1a2bb69d7cf770d88dece01cf86d
treeef65d6b25357273ef5938b10e2b3325dab636135
parent767fb54166dfec52cd129397af689547d7e25652
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: 062928edcd10 ("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