Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115055
b: refs/heads/master
c: ce25d7e
h: refs/heads/master
i:
  115053: 44a65ea
  115051: f52cea4
  115047: d938341
  115039: 147e024
v: v3
  • Loading branch information
Uwe Kleine-König authored and Dmitry Torokhov committed Aug 8, 2008
1 parent 0518bc9 commit f15bc9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57ffe9d539e0eb741bb9ca8f2834d210e70ee2e3
refs/heads/master: ce25d7e90c7543f0046c3bdcdcc7594546c57dcc
9 changes: 5 additions & 4 deletions trunk/drivers/input/keyboard/gpio_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ struct gpio_keys_drvdata {
struct gpio_button_data data[0];
};

static void gpio_keys_report_event(struct gpio_keys_button *button,
struct input_dev *input)
static void gpio_keys_report_event(struct gpio_button_data *bdata)
{
struct gpio_keys_button *button = bdata->button;
struct input_dev *input = bdata->input;
unsigned int type = button->type ?: EV_KEY;
int state = (gpio_get_value(button->gpio) ? 1 : 0) ^ button->active_low;

Expand All @@ -51,7 +52,7 @@ static void gpio_check_button(unsigned long _data)
{
struct gpio_button_data *data = (struct gpio_button_data *)_data;

gpio_keys_report_event(data->button, data->input);
gpio_keys_report_event(data);
}

static irqreturn_t gpio_keys_isr(int irq, void *dev_id)
Expand All @@ -65,7 +66,7 @@ static irqreturn_t gpio_keys_isr(int irq, void *dev_id)
mod_timer(&bdata->timer,
jiffies + msecs_to_jiffies(button->debounce_interval));
else
gpio_keys_report_event(button, bdata->input);
gpio_keys_report_event(bdata);

return IRQ_HANDLED;
}
Expand Down

0 comments on commit f15bc9e

Please sign in to comment.