]> git.baikalelectronics.ru Git - kernel.git/commit
Input: edt-ft5x06 - do not call desc_to_gpio for invalid gpios
authorFranklin S Cooper Jr <fcooper@ti.com>
Tue, 6 Oct 2015 22:24:34 +0000 (15:24 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 6 Oct 2015 23:38:40 +0000 (16:38 -0700)
commit5e4b695de2a7f9fb91c0d5cf2902b956ec74f0d3
tree366000edcc49878287f83c693963eab7823fdbf5
parent077b600a066209e9120ee29ee1989bf59aa0b775
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.

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>
drivers/input/touchscreen/edt-ft5x06.c