From: Joe Perches <joe@perches.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH] remove unused #defines to_dev,to_handler,to_handle,to_handle_h
Date: Wed, 23 Apr 2008 20:40:37 -0700 [thread overview]
Message-ID: <1209008437.8636.196.camel@localhost> (raw)
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
Signed-off-by: Joe Perches <joe@perches.com>
drivers/base/driver.c | 3 ---
drivers/char/keyboard.c | 2 ++
include/linux/input.h | 5 -----
3 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index 9a6537f..2611ae8 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -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);
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c
index 9769bf8..0ad7397 100644
--- a/drivers/char/keyboard.c
+++ b/drivers/char/keyboard.c
@@ -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
*/
diff --git a/include/linux/input.h b/include/linux/input.h
index cae2c35..4349ba6 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -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);
next reply other threads:[~2008-04-24 3:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-24 3:40 Joe Perches [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-04-24 3:50 [PATCH] remove unused #defines to_dev,to_handler,to_handle,to_handle_h Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1209008437.8636.196.camel@localhost \
--to=joe@perches.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.