[PATCH 19/22] Input: tsc2007: Add device tree support.

Fabio Estevam festevam at gmail.com
Mon Jul 15 12:08:23 EDT 2013


On Mon, Jul 15, 2013 at 11:57 AM, Denis Carikli <denis at eukrea.com> wrote:
> Set the of_match_table for this driver so that devices can be described
>   in the device tree.
>
> Signed-off-by: Denis Carikli <denis at eukrea.com>
> ---
>  .../bindings/input/touchscreen/tsc2007.txt         |   44 +++++
>  drivers/input/touchscreen/tsc2007.c                |  205 ++++++++++++++++----

You should have Cc'ed linux-input list and its maintainer Dmitry
Torokhov <dmitry.torokhov at gmail.com>

> +static int tsc2007_get_pendown_state_dt(struct tsc2007  *ts)
> +{
> +       if (ts->gpio >= 0)

What about
if (gpio_is_valid(ts->gpio)) instead?



More information about the linux-arm-kernel mailing list