Re: [PATCH 4/4] Input: tsc2005 - convert to gpiod

2015-07-16 Thread Sebastian Reichel
On Wed, Jul 15, 2015 at 05:25:32PM -0700, Dmitry Torokhov wrote: On Thu, Jul 16, 2015 at 12:09:41AM +0200, Sebastian Reichel wrote: On Wed, Jul 15, 2015 at 02:34:04PM -0700, Dmitry Torokhov wrote: [...] if (np) { - ts-reset_gpio = of_get_named_gpio(np,

[PATCH 4/4] Input: tsc2005 - convert to gpiod

2015-07-15 Thread Sebastian Reichel
Convert driver to descriptor based GPIO API. Also fix the after-probe reset GPIO state, so that the device is not kept in reset state. Signed-off-by: Sebastian Reichel s...@kernel.org --- drivers/input/touchscreen/tsc2005.c | 25 - 1 file changed, 8 insertions(+), 17

Re: [PATCH 4/4] Input: tsc2005 - convert to gpiod

2015-07-15 Thread Dmitry Torokhov
On Thu, Jul 16, 2015 at 12:09:41AM +0200, Sebastian Reichel wrote: Hi, On Wed, Jul 15, 2015 at 02:34:04PM -0700, Dmitry Torokhov wrote: [...] if (np) { - ts-reset_gpio = of_get_named_gpio(np, reset-gpios, 0); - if (ts-reset_gpio == -EPROBE_DEFER) -

Re: [PATCH 4/4] Input: tsc2005 - convert to gpiod

2015-07-15 Thread Dmitry Torokhov
On Wed, Jul 15, 2015 at 02:13:28PM +0200, Sebastian Reichel wrote: Convert driver to descriptor based GPIO API. Also fix the after-probe reset GPIO state, so that the device is not kept in reset state. Signed-off-by: Sebastian Reichel s...@kernel.org ---

Re: [PATCH 4/4] Input: tsc2005 - convert to gpiod

2015-07-15 Thread Sebastian Reichel
Hi, On Wed, Jul 15, 2015 at 02:34:04PM -0700, Dmitry Torokhov wrote: [...] if (np) { - ts-reset_gpio = of_get_named_gpio(np, reset-gpios, 0); - if (ts-reset_gpio == -EPROBE_DEFER) - return ts-reset_gpio; - if (ts-reset_gpio 0) { +