From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754599AbYDXDlO (ORCPT ); Wed, 23 Apr 2008 23:41:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753409AbYDXDlA (ORCPT ); Wed, 23 Apr 2008 23:41:00 -0400 Received: from 136-022.dsl.labridge.com ([206.117.136.22]:3628 "EHLO mail.perches.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753374AbYDXDk7 (ORCPT ); Wed, 23 Apr 2008 23:40:59 -0400 Subject: [PATCH] remove unused #defines to_dev,to_handler,to_handle,to_handle_h From: Joe Perches To: LKML Cc: Andrew Morton Content-Type: text/plain Date: Wed, 23 Apr 2008 20:40:37 -0700 Message-Id: <1209008437.8636.196.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3-1.2mdv2008.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 #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);