From patchwork Wed Jun 30 05:26:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Tang X-Patchwork-Id: 108734 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o5U58dIQ027596 for ; Wed, 30 Jun 2010 05:08:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751266Ab0F3FIf (ORCPT ); Wed, 30 Jun 2010 01:08:35 -0400 Received: from mga09.intel.com ([134.134.136.24]:28468 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750851Ab0F3FIf (ORCPT ); Wed, 30 Jun 2010 01:08:35 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 29 Jun 2010 22:08:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.53,509,1272870000"; d="scan'208";a="634906297" Received: from feng-i7.sh.intel.com (HELO localhost.localdomain) ([10.239.14.56]) by orsmga001.jf.intel.com with ESMTP; 29 Jun 2010 22:08:16 -0700 From: feng.tang@intel.com To: linux-input@vger.kernel.org Cc: Feng Tang Subject: [PATCH] input: i8042 - make function definitions in i8042.h "static inline" Date: Wed, 30 Jun 2010 13:26:51 +0800 Message-Id: <1277875611-22907-1-git-send-email-feng.tang@intel.com> X-Mailer: git-send-email 1.7.0.4 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.3 (demeter.kernel.org [140.211.167.41]); Wed, 30 Jun 2010 05:08:39 +0000 (UTC) diff --git a/include/linux/i8042.h b/include/linux/i8042.h index 9bf6870..a986ff5 100644 --- a/include/linux/i8042.h +++ b/include/linux/i8042.h @@ -46,31 +46,31 @@ int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str, #else -void i8042_lock_chip(void) +static inline void i8042_lock_chip(void) { } -void i8042_unlock_chip(void) +static inline void i8042_unlock_chip(void) { } -int i8042_command(unsigned char *param, int command) +static inline int i8042_command(unsigned char *param, int command) { return -ENODEV; } -bool i8042_check_port_owner(const struct serio *serio) +static inline bool i8042_check_port_owner(const struct serio *serio) { return false; } -int i8042_install_filter(bool (*filter)(unsigned char data, unsigned char str, +static inline int i8042_install_filter(bool (*filter)(unsigned char data, unsigned char str, struct serio *serio)) { return -ENODEV; } -int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str, +static inline int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str, struct serio *serio)) { return -ENODEV;