From patchwork Fri Feb 6 09:41:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sonic zhang X-Patchwork-Id: 5789141 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 52D93BF440 for ; Fri, 6 Feb 2015 09:43:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C1E52012D for ; Fri, 6 Feb 2015 09:43:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 81EA62011D for ; Fri, 6 Feb 2015 09:43:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751074AbbBFJnx (ORCPT ); Fri, 6 Feb 2015 04:43:53 -0500 Received: from mail-bl2on0055.outbound.protection.outlook.com ([65.55.169.55]:29682 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750853AbbBFJnv (ORCPT ); Fri, 6 Feb 2015 04:43:51 -0500 Received: from BN3PR0301CA0081.namprd03.prod.outlook.com (25.160.152.177) by BY2PR0301MB0742.namprd03.prod.outlook.com (25.160.63.20) with Microsoft SMTP Server (TLS) id 15.1.75.20; Fri, 6 Feb 2015 09:43:49 +0000 Received: from BN1BFFO11FD046.protection.gbl (2a01:111:f400:7c10::1:103) by BN3PR0301CA0081.outlook.office365.com (2a01:111:e400:401e::49) with Microsoft SMTP Server (TLS) id 15.1.87.13 via Frontend Transport; Fri, 6 Feb 2015 09:43:49 +0000 Received: from nwd2mta2.analog.com (137.71.25.57) by BN1BFFO11FD046.mail.protection.outlook.com (10.58.145.1) with Microsoft SMTP Server (TLS) id 15.1.87.10 via Frontend Transport; Fri, 6 Feb 2015 09:43:48 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.72.140]) by nwd2mta2.analog.com (8.13.8/8.13.8) with ESMTP id t16Cq1Rf017227 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 6 Feb 2015 07:52:02 -0500 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS7.ad.analog.com (10.64.72.140) with Microsoft SMTP Server id 14.3.210.2; Fri, 6 Feb 2015 04:43:12 -0500 Received: from linux.site ([10.99.22.20]) by zeus.spd.analog.com (8.14.6/8.14.6) with ESMTP id t169hBam030208; Fri, 6 Feb 2015 04:43:11 -0500 Received: from nine.ad.analog.com (unknown [10.99.24.95]) by linux.site (Postfix) with ESMTP id 267643B00E0F; Thu, 5 Feb 2015 18:46:50 -0700 (MST) From: Sonic Zhang To: Steven Miao , CC: Dmitry Torokhov , , Sonic Zhang Subject: [PATCH] blackfin: convert pinmux request API into empty static inline functions for bf609 and bf548 Date: Fri, 6 Feb 2015 17:41:39 +0800 Message-ID: <1423215699-11153-1-git-send-email-sonic.adi@gmail.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 130676894290649566; (52f37747-95c3-483a-bd05-08d153b03fac); () Received-SPF: SoftFail (protection.outlook.com: domain of transitioning gmail.com discourages use of 137.71.25.57 as permitted sender) Authentication-Results: spf=softfail (sender IP is 137.71.25.57) smtp.mailfrom=sonic.adi@gmail.com; lists.sourceforge.net; dkim=none (message not signed) header.d=none; X-Forefront-Antispam-Report: CIP:137.71.25.57; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(47776003)(83322999)(92566002)(73392002)(46102003)(6806004)(19580405001)(19580395003)(61266001)(55446002)(105596002)(50226001)(229853001)(87572001)(86362001)(50986999)(33646002)(73972006)(87936001)(76482003)(62966003)(77156002)(82202001)(50466002)(81442002)(77096005)(36756003)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0742; H:nwd2mta2.analog.com; FPR:; SPF:SoftFail; MLV:sfv; LANG:en; X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0742; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004); SRVR:BY2PR0301MB0742; X-Forefront-PRVS: 047999FF16 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(401004)(400005); SRVR:BY2PR0301MB0742; X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2015 09:43:48.9401 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[137.71.25.57] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB0742 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sonic Zhang Signed-off-by: Sonic Zhang Reviewed-by: Dmitry Torokhov --- arch/blackfin/include/asm/portmux.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/arch/blackfin/include/asm/portmux.h b/arch/blackfin/include/asm/portmux.h index ccb96ca..2f6893e 100644 --- a/arch/blackfin/include/asm/portmux.h +++ b/arch/blackfin/include/asm/portmux.h @@ -23,10 +23,17 @@ int bfin_internal_set_wake(unsigned int irq, unsigned int state); #define gpio_pint_regs bfin_pint_regs #define adi_internal_set_wake bfin_internal_set_wake -#define peripheral_request(per, label) (0) -#define peripheral_free(per) -#define peripheral_request_list(per, label) (0) -#define peripheral_free_list(per) +static inline int peripheral_request(unsigned short per, const char *label) +{ + return 0; +} +static inline void peripheral_free(unsigned short per) {} +static inline int peripheral_request_list(const unsigned short per[], + const char *label) +{ + return 0; +} +static inline void peripheral_free_list(const unsigned short per[]) {} int pinmux_request(unsigned short per, const char *label); void pinmux_free(unsigned short per); int pinmux_request_list(const unsigned short per[], const char *label);