summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches2008-05-07 17:15:23 +0200
committerDmitry Torokhov2008-05-16 20:51:47 +0200
commit253b00f1e6619055d524188f254ccb951bffce5d (patch)
tree90cb8c276727b91dbf24fa0ac03cbebcfd2c524c
parentInput: libps2 - remove delayed command execution (diff)
downloadkernel-qcow2-linux-253b00f1e6619055d524188f254ccb951bffce5d.tar.gz
kernel-qcow2-linux-253b00f1e6619055d524188f254ccb951bffce5d.tar.xz
kernel-qcow2-linux-253b00f1e6619055d524188f254ccb951bffce5d.zip
Input: remove unused defines
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>
-rw-r--r--drivers/char/keyboard.c2
-rw-r--r--include/linux/input.h5
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c
index 7f7e798c1384..d0369e05490a 100644
--- a/drivers/char/keyboard.c
+++ b/drivers/char/keyboard.c
@@ -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
*/
diff --git a/include/linux/input.h b/include/linux/input.h
index 28a094fcfe20..eff711d8a459 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -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);