]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Input: remove unused defines
authorJoe Perches <joe@perches.com>
Wed, 7 May 2008 15:15:23 +0000 (11:15 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 16 May 2008 18:51:47 +0000 (14:51 -0400)
Remove unused to_dev, to_handler, to_handle from include/linux/input.h
Move to_handle_h from include/linux/input.h to drivers/char/keyboard.c

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/char/keyboard.c
include/linux/input.h

index 7f7e798c13844f0a8c8e2630057566c9ed5a66cf..d0369e05490a57898d63e202375475b500c3ae93 100644 (file)
@@ -46,6 +46,8 @@
 
 extern void ctrl_alt_del(void);
 
+#define to_handle_h(n) container_of(n, struct input_handle, h_node)
+
 /*
  * Exported functions/variables
  */
index 28a094fcfe201f0a05a344011f338cf7c3c7dc72..eff711d8a45939c16fa48c6d928a26d56cf8a127 100644 (file)
@@ -1213,11 +1213,6 @@ struct input_handle {
        struct list_head        h_node;
 };
 
-#define to_dev(n) container_of(n, struct input_dev, node)
-#define to_handler(n) container_of(n, struct input_handler, node)
-#define to_handle(n) container_of(n, struct input_handle, d_node)
-#define to_handle_h(n) container_of(n, struct input_handle, h_node)
-
 struct input_dev *input_allocate_device(void);
 void input_free_device(struct input_dev *dev);