lkml.org 
[lkml]   [2010]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.


\
 
 \ /
  Last update: 2010-06-14 13:53    [W:0.158 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site