lkml.org 
[lkml]   [2003]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject2.6.0-test5 : Bug in include/linux/input.h ?
Hi,

While reading the input code, I found the following error in
drivers/linux/input.h :

--- include/linux/input.h 2003-08-23 01:54:59.000000000 +0200
+++ include/linux/input.h.mod 2003-09-16 21:38:10.000000000 +0200
@@ -751,7 +751,7 @@
#define LONG(x) ((x)/BITS_PER_LONG)

#define INPUT_KEYCODE(dev, scancode) ((dev->keycodesize == 1) ?
((u8*)dev->keycode)[scancode] : \
- ((dev->keycodesize == 1) ? ((u16*)dev->keycode)[scancode] :
(((u32*)dev->keycode)[scancode])))
+ ((dev->keycodesize == 2) ? ((u16*)dev->keycode)[scancode] :
(((u32*)dev->keycode)[scancode])))

#define init_input_dev(dev) do { INIT_LIST_HEAD(&((dev)->h_list));
INIT_LIST_HEAD(&((dev)->node)); } while (0)

Remi
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.035 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site