[PATCH 8/11] input: Change order of search for beeper devices in keyboard.c

From: Vojtech Pavlik (vojtech@ucw.cz)
Date: Sat Jun 21 2003 - 08:51:57 EST


You can pull this changeset from:
        bk://kernel.bkbits.net/vojtech/input

===================================================================

ChangeSet@1.1366, 2003-06-21 04:44:26-07:00, neilb@cse.unsw.edu.au
  input: Change order of search for beeper devices in keyboard.c,
         so that it is easier to replace a beeper with a different
         driver

 keyboard.c | 2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

===================================================================

diff -Nru a/drivers/char/keyboard.c b/drivers/char/keyboard.c
--- a/drivers/char/keyboard.c Sat Jun 21 15:25:44 2003
+++ b/drivers/char/keyboard.c Sat Jun 21 15:25:44 2003
@@ -242,7 +242,7 @@
         del_timer(&kd_mksound_timer);
 
         if (hz) {
- list_for_each(node,&kbd_handler.h_list) {
+ list_for_each_prev(node,&kbd_handler.h_list) {
                         struct input_handle *handle = to_handle_h(node);
                         if (test_bit(EV_SND, handle->dev->evbit)) {
                                 if (test_bit(SND_TONE, handle->dev->sndbit)) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 23 2003 - 22:00:36 EST