Skip to content

Commit

Permalink
Input: remove unused defines
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and Dmitry Torokhov committed May 16, 2008
1 parent ccd3474 commit 253b00f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions drivers/char/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
5 changes: 0 additions & 5 deletions include/linux/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 253b00f

Please sign in to comment.