[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100614115123.GB14604@rakim.wolfsonmicro.main>
Date: Mon, 14 Jun 2010 12:51:23 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Luotao Fu <l.fu@...gutronix.de>
Cc: Samuel Ortiz <sameo@...ux.intel.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/3 V2] gpio: add STMPE811 gpio controller support
On Mon, Jun 14, 2010 at 12:32:37PM +0200, Luotao Fu wrote:
> +static struct gpio_chip gpio_chip = {
> + .label = STMPE811_GPIO_NAME,
> + .owner = THIS_MODULE,
> + .direction_input = stmpe811_gpio_direction_in,
> + .get = stmpe811_gpio_get,
> + .direction_output = stmpe811_gpio_direction_out,
> + .set = stmpe811_gpio_set,
> + .request = stmpe811_gpio_request,
> + .can_sleep = 1,
> +};
Assuming you're able to do interrupts on the GPIOs you should now be
able to implement to_irq() as well.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists