Input: st1232 - switch to gpiod API
authorMartin Kepplinger <martin.kepplinger@ginzinger.com>
Sat, 9 Feb 2019 16:53:13 +0000 (08:53 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 17 Feb 2019 05:39:39 +0000 (21:39 -0800)
commite3dd12f0eacc52ddf5cd4e6651e09daebcb25f0e
tree719312e901f35f4187680a71c7ec015777b5f80c
parentf67cc3e927d8414ad3872e046764534ea1f5db0d
Input: st1232 - switch to gpiod API

Use devm_gpiod_get_optional() and gpiod_set_value_cansleep() instead
of the old API. The st1232_ts_power() now passes on the inverted "poweron"
value to reflect the correct logical value.

Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/st1232.c