浏览代码

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>
Joe Perches 17 年之前
父节点
当前提交
253b00f1e6
共有 2 个文件被更改,包括 2 次插入5 次删除
  1. 2 0
      drivers/char/keyboard.c
  2. 0 5
      include/linux/input.h

+ 2 - 0
drivers/char/keyboard.c

@@ -46,6 +46,8 @@
 
 
 extern void ctrl_alt_del(void);
 extern void ctrl_alt_del(void);
 
 
+#define to_handle_h(n) container_of(n, struct input_handle, h_node)
+
 /*
 /*
  * Exported functions/variables
  * Exported functions/variables
  */
  */

+ 0 - 5
include/linux/input.h

@@ -1213,11 +1213,6 @@ struct input_handle {
 	struct list_head	h_node;
 	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);
 struct input_dev *input_allocate_device(void);
 void input_free_device(struct input_dev *dev);
 void input_free_device(struct input_dev *dev);