]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
Input: edt-ft5x06 - do not call desc_to_gpio for invalid gpios
authorFranklin S Cooper Jr <fcooper@ti.com>
Wed, 7 Oct 2015 09:52:21 +0000 (04:52 -0500)
committerPraneeth Bajjuri <praneeth@ti.com>
Tue, 24 Nov 2015 23:19:24 +0000 (17:19 -0600)
commit641b2acdd9b749c504e5692ef27a95f59ff27c81
tree34a5e6e79edc81ad1eb066aa603652475a9972bf
parentf5bc955a15a7cb151fe9a634b0fff27604bdad47
Input: edt-ft5x06 - do not call desc_to_gpio for invalid gpios

Since reset and wake pin are optional the gpio structure for those
pins may be null. Therefore, they can't be blindly passed to
desc_to_gpio.

Change-Id: I02e808ef69dd2772cf0c574fc2d9dcb1e1921455
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/input/touchscreen/edt-ft5x06.c