Input: silead - use devm_gpiod_get
authorHans de Goede <hdegoede@redhat.com>
Mon, 22 Aug 2016 20:49:59 +0000 (13:49 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 22 Aug 2016 21:14:15 +0000 (14:14 -0700)
commit5cab4d84780573afbf5077ae9c3f919b4f305f20
tree6080ad6360397ee32a6aee8b5fb8b539390cd7de
parent47af45d684b5f3ae000ad448db02ce4f13f73273
Input: silead - use devm_gpiod_get

The silead code is using devm_foo for everything (and does not free
any resources). Except that it is using gpiod_get instead of
devm_gpiod_get (but is not freeing the gpio_desc), change this
to use devm_gpiod_get so that the gpio will be properly released.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/silead.c