From patchwork Fri Apr 8 12:23:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wanlong Gao X-Patchwork-Id: 694491 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p38COhib010511 for ; Fri, 8 Apr 2011 12:25:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756139Ab1DHMZO (ORCPT ); Fri, 8 Apr 2011 08:25:14 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:49043 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755015Ab1DHMZN (ORCPT ); Fri, 8 Apr 2011 08:25:13 -0400 Received: by iwn34 with SMTP id 34so3415848iwn.19 for ; Fri, 08 Apr 2011 05:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=+LuY7emWXTZwg1voZCVWq65Jy0l94Q6wdy2EbGvZWZo=; b=ZbOQoSxu92tGbydOM53RqOr5P+DV3ZsoNQMxXGajghc3OIV36yQ5O94HK3+8l6EzAw E+bT3cha6LL72Uq4AoDiyses+JpgBy6pMuf05Mo1sr75XfOK2Vc7imd5Z1dnZpnL1EA1 yldSeTes6OyOTPyrFIKkDDzph1Xsw00ff4sPI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=CDGS1N6Gir7LB2BebanFJIaCSD6zQCBBJs19I4L/oZazjN8QWrg8G76ZP7pxvDyY/g UmFpxPOorz/uGybNnECo8dR57gmOoIUaqOufX6sL+w769fXDUz8ao3SyhbDXsdo4bT1H aHMawuZ1YMdjnhuWiGt1wiYG6bQfGbMcj8n78= Received: by 10.42.226.65 with SMTP id iv1mr81915icb.196.1302265512388; Fri, 08 Apr 2011 05:25:12 -0700 (PDT) Received: from localhost.localdomain ([182.32.130.75]) by mx.google.com with ESMTPS id ww2sm1695960icb.3.2011.04.08.05.25.03 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Apr 2011 05:25:11 -0700 (PDT) From: wanlong.gao@gmail.com To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Wanlong Gao Subject: [PATCH] INPUT:Change a more clearly name for the input handlers' table Date: Fri, 8 Apr 2011 20:23:44 +0800 Message-Id: <1302265424-4434-1-git-send-email-wanlong.gao@gmail.com> X-Mailer: git-send-email 1.7.3 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 08 Apr 2011 12:25:15 +0000 (UTC) From: Wanlong Gao Change the input handlers' table name to input_handler_table for making more clearly sense . Signed-off-by: Wanlong Gao --- drivers/input/input.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/input/input.c b/drivers/input/input.c index d6e8bd8..00511dc 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -45,7 +45,7 @@ static LIST_HEAD(input_handler_list); */ static DEFINE_MUTEX(input_mutex); -static struct input_handler *input_table[8]; +static struct input_handler *input_handler_table[8]; static inline int is_event_supported(unsigned int code, unsigned long *bm, unsigned int max) @@ -1893,11 +1893,11 @@ int input_register_handler(struct input_handler *handler) INIT_LIST_HEAD(&handler->h_list); if (handler->fops != NULL) { - if (input_table[handler->minor >> 5]) { + if (input_handler_table[handler->minor >> 5]) { retval = -EBUSY; goto out; } - input_table[handler->minor >> 5] = handler; + input_handler_table[handler->minor >> 5] = handler; } list_add_tail(&handler->node, &input_handler_list); @@ -1933,7 +1933,7 @@ void input_unregister_handler(struct input_handler *handler) list_del_init(&handler->node); if (handler->fops != NULL) - input_table[handler->minor >> 5] = NULL; + input_handler_table[handler->minor >> 5] = NULL; input_wakeup_procfs_readers(); @@ -2062,7 +2062,7 @@ static int input_open_file(struct inode *inode, struct file *file) return err; /* No load-on-demand here? */ - handler = input_table[iminor(inode) >> 5]; + handler = input_handler_table[iminor(inode) >> 5]; if (handler) new_fops = fops_get(handler->fops);