input: keyboard: rk_keys: Add support for configuring adc drift value from DT
authorDavid Wu <david.wu@rock-chips.com>
Fri, 23 Sep 2016 06:08:11 +0000 (14:08 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Sat, 24 Sep 2016 06:36:06 +0000 (14:36 +0800)
commit63e8d019d458d6922b39003f4f09124d237cc83f
treea5552e9e471f2ad787ee7abb0c300110fa67f55d
parent7f7a1313ef0eab26c22229398ac09ab73027d296
input: keyboard: rk_keys: Add support for configuring adc drift value from DT

If the adc drift value is 70, some keys maybe report twice, because
the range of adc_value +/-70 is overlapping other keys' adc range.
So it is better configuring adc drift value from DT, that also can
support more keys at a adc channel. The default adc drift value is
70, if it does not get the drift value from DT.

Change-Id: I46cef235094116d4f03af5e5c0cd3a6dfe7e8b0d
Signed-off-by: David Wu <david.wu@rock-chips.com>
drivers/input/keyboard/rk_keys.c [changed mode: 0755->0644]