Input: ads7846 - cleanup GPIO initialization
authorIgor Grinberg <grinberg@compulab.co.il>
Mon, 27 Jun 2011 20:06:27 +0000 (13:06 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 27 Jun 2011 20:08:05 +0000 (13:08 -0700)
commit58c244009ef6ca450f0d787828a7f2f27651db5b
tree743d3f6a63fc4ddab9b09c2ccf559e65ada1ba75
parent11d0cf8859451d6336959204b2d4cc173dd1aa4e
Input: ads7846 - cleanup GPIO initialization

Use gpio_request_one() instead of multiple gpiolib calls.
This also simplifies error handling a bit.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/ads7846.c