Skip to contentSkip to conversation

remove unused #defines to_dev,to_handler,to_handle,to_handle_h

PATCH New Joe Perches 1 participant 1 message Apr 24, 2008

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove unused #defines to_dev,to_handler,to_handle,to_handle_h

Originally sent to LKML, but you should have received this too.

-------------

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 Remove unused to_dev from drivers/base/driver.c

 drivers/base/driver.c   |    3 ---
 drivers/char/keyboard.c |    2 ++
 include/linux/input.h   |    5 -----
 3 files changed, 2 insertions(+), 8 deletions(-)
drivers/base/driver.c +0 -3
index 9a6537f..2611ae8 100644
@@ -16,9 +16,6 @@
 #include <linux/string.h>
 #include "base.h"
 
-#define to_dev(node) container_of(node, struct device, driver_list)
-
-
 static struct device *next_device(struct klist_iter *i)
 {
 	struct klist_node *n = klist_next(i);
drivers/char/keyboard.c +2 -0
index 9769bf8..0ad7397 100644
@@ -45,6 +45,8 @@
 
 extern void ctrl_alt_del(void);
 
+#define to_handle_h(n) container_of(n, struct input_handle, h_node)
+
 /*
  * Exported functions/variables
  */
include/linux/input.h +0 -5
index cae2c35..4349ba6 100644
@@ -1217,11 +1217,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);