Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243086
b: refs/heads/master
c: 4eeb502
h: refs/heads/master
v: v3
  • Loading branch information
Mattia Dongili authored and Matthew Garrett committed Mar 28, 2011
1 parent 60de293 commit eda76a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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: 54286fd0da36a51f4cefe669b70a284a799f3e45
refs/heads/master: 4eeb50220a4efd8c33598a228d03aff203a7ad07
8 changes: 5 additions & 3 deletions trunk/drivers/platform/x86/sony-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1592,8 +1592,8 @@ static struct sonypi_event sonypi_blueev[] = {

/* The set of possible wireless events */
static struct sonypi_event sonypi_wlessev[] = {
{ 0x59, SONYPI_EVENT_WIRELESS_ON },
{ 0x5a, SONYPI_EVENT_WIRELESS_OFF },
{ 0x59, SONYPI_EVENT_IGNORE },
{ 0x5a, SONYPI_EVENT_IGNORE },
{ 0, 0 }
};

Expand Down Expand Up @@ -2733,6 +2733,9 @@ static irqreturn_t sony_pic_irq(int irq, void *dev_id)
if (ev == dev->event_types[i].events[j].data) {
device_event =
dev->event_types[i].events[j].event;
/* some events may require ignoring */
if (!device_event)
return IRQ_HANDLED;
goto found;
}
}
Expand All @@ -2752,7 +2755,6 @@ static irqreturn_t sony_pic_irq(int irq, void *dev_id)
sony_laptop_report_input_event(device_event);
acpi_bus_generate_proc_event(dev->acpi_dev, 1, device_event);
sonypi_compat_report_event(device_event);

return IRQ_HANDLED;
}

Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/sonypi.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

/* events the user application reading /dev/sonypi can use */

#define SONYPI_EVENT_IGNORE 0
#define SONYPI_EVENT_JOGDIAL_DOWN 1
#define SONYPI_EVENT_JOGDIAL_UP 2
#define SONYPI_EVENT_JOGDIAL_DOWN_PRESSED 3
Expand Down

0 comments on commit eda76a6

Please sign in to comment.