[ep93xx] set the mac address using the chip-unique serial number
[openwrt.git] / target / linux / omap24xx / patches-2.6.36 / 710-evdev-events-without-grab.patch
1 ---
2 drivers/input/evdev.c | 10 +++++++---
3 1 file changed, 7 insertions(+), 3 deletions(-)
4
5 --- linux-2.6.36-rc4.orig/drivers/input/evdev.c
6 +++ linux-2.6.36-rc4/drivers/input/evdev.c
7 @@ -76,7 +76,7 @@ static void evdev_event(struct input_han
8 unsigned int type, unsigned int code, int value)
9 {
10 struct evdev *evdev = handle->private;
11 - struct evdev_client *client;
12 + struct evdev_client *client, *c;
13 struct input_event event;
14
15 do_gettimeofday(&event.time);
16 @@ -87,9 +87,13 @@ static void evdev_event(struct input_han
17 rcu_read_lock();
18
19 client = rcu_dereference(evdev->grab);
20 - if (client)
21 + if (client) {
22 evdev_pass_event(client, &event);
23 - else
24 + /* Also pass events to clients that did not grab the device. */
25 + list_for_each_entry_rcu(c, &evdev->client_list, node)
26 + if (c != client)
27 + evdev_pass_event(c, &event);
28 + } else
29 list_for_each_entry_rcu(client, &evdev->client_list, node)
30 evdev_pass_event(client, &event);
31
This page took 0.055588 seconds and 5 git commands to generate.