From patchwork Sat Feb 6 01:24:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hebbar, Shivananda" X-Patchwork-Id: 77483 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o161Nfi5003101 for ; Sat, 6 Feb 2010 01:24:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933837Ab0BFBYP (ORCPT ); Fri, 5 Feb 2010 20:24:15 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:45331 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933223Ab0BFBYO convert rfc822-to-8bit (ORCPT ); Fri, 5 Feb 2010 20:24:14 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o161OBSf015020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 5 Feb 2010 19:24:13 -0600 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id o161OAvF001611 for ; Sat, 6 Feb 2010 06:54:10 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Sat, 6 Feb 2010 06:54:10 +0530 From: "Hebbar, Shivananda" To: linux-omap Date: Sat, 6 Feb 2010 06:54:08 +0530 Subject: [Patch 8/8] DSPBRIDGE: typedef cleanup -CHNL_MODE Thread-Topic: [Patch 8/8] DSPBRIDGE: typedef cleanup -CHNL_MODE Thread-Index: AcqmyxRpq0vpmb8vTNOJWB9UsBWwOw== Message-ID: <19F8576C6E063C45BE387C64729E7394044A77623A@dbde02.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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]); Sat, 06 Feb 2010 01:24:15 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/dspbridge/chnldefs.h b/arch/arm/plat-omap/include/dspbridge/chnldefs.h index be405ba..43df8b7 100644 --- a/arch/arm/plat-omap/include/dspbridge/chnldefs.h +++ b/arch/arm/plat-omap/include/dspbridge/chnldefs.h @@ -45,8 +45,6 @@ #define CHNL_IsIOCancelled(ioc) (ioc.status & CHNL_IOCSTATCANCEL) #define CHNL_IsTimedOut(ioc) (ioc.status & CHNL_IOCSTATTIMEOUT) -/* CHNL types: */ - typedef u32 CHNL_MODE; /* Channel transfer mode. */ /* Channel attributes: */ struct CHNL_ATTRS { diff --git a/arch/arm/plat-omap/include/dspbridge/wmd.h b/arch/arm/plat-omap/include/dspbridge/wmd.h index 70f3970..3305eab 100644 --- a/arch/arm/plat-omap/include/dspbridge/wmd.h +++ b/arch/arm/plat-omap/include/dspbridge/wmd.h @@ -418,7 +418,7 @@ typedef DSP_STATUS(*WMD_BRD_WRITE)(struct WMD_DEV_CONTEXT *hDevContext, typedef DSP_STATUS(*WMD_CHNL_OPEN) (OUT struct CHNL_OBJECT **phChnl, struct CHNL_MGR *hChnlMgr, - CHNL_MODE uMode, + short int uMode, u32 uChnlId, CONST IN OPTIONAL struct CHNL_ATTRS *pAttrs); diff --git a/arch/arm/plat-omap/include/dspbridge/wmdchnl.h b/arch/arm/plat-omap/include/dspbridge/wmdchnl.h index 4b733d8..f2608e0 100644 --- a/arch/arm/plat-omap/include/dspbridge/wmdchnl.h +++ b/arch/arm/plat-omap/include/dspbridge/wmdchnl.h @@ -33,7 +33,7 @@ extern DSP_STATUS WMD_CHNL_Open(OUT struct CHNL_OBJECT **phChnl, struct CHNL_MGR *hChnlMgr, - CHNL_MODE uMode, + short int uMode, u32 uChnlId, CONST IN OPTIONAL struct CHNL_ATTRS *pAttrs); diff --git a/drivers/dsp/bridge/rmgr/node.c b/drivers/dsp/bridge/rmgr/node.c index 11af1dc..ed8f2b9 100644 --- a/drivers/dsp/bridge/rmgr/node.c +++ b/drivers/dsp/bridge/rmgr/node.c @@ -895,7 +895,7 @@ DSP_STATUS NODE_Connect(struct NODE_OBJECT *hNode1, u32 uStream1, struct STREAM *pStream; GB_BitNum pipeId = GB_NOBITS; GB_BitNum chnlId = GB_NOBITS; - CHNL_MODE uMode; + short int uMode; u32 dwLength; DSP_STATUS status = DSP_SOK; DBC_Require(cRefs > 0); diff --git a/drivers/dsp/bridge/rmgr/strm.c b/drivers/dsp/bridge/rmgr/strm.c index febb6c2..f03064e 100644 --- a/drivers/dsp/bridge/rmgr/strm.c +++ b/drivers/dsp/bridge/rmgr/strm.c @@ -524,7 +524,7 @@ DSP_STATUS STRM_Open(struct NODE_OBJECT *hNode, u32 uDir, u32 uIndex, struct WMD_DRV_INTERFACE *pIntfFxns; u32 ulChnlId; struct STRM_OBJECT *pStrm = NULL; - CHNL_MODE uMode; + short int uMode; struct CHNL_ATTRS chnlAttrs; DSP_STATUS status = DSP_SOK; struct CMM_OBJECT *hCmmMgr = NULL; /* Shared memory manager hndl */ diff --git a/drivers/dsp/bridge/wmd/chnl_sm.c b/drivers/dsp/bridge/wmd/chnl_sm.c index ca5662d..362dc99 100644 --- a/drivers/dsp/bridge/wmd/chnl_sm.c +++ b/drivers/dsp/bridge/wmd/chnl_sm.c @@ -253,7 +253,7 @@ DSP_STATUS WMD_CHNL_CancelIO(struct CHNL_OBJECT *hChnl) DSP_STATUS status = DSP_SOK; struct CHNL_OBJECT *pChnl = (struct CHNL_OBJECT *)hChnl; u32 iChnl = -1; - CHNL_MODE uMode; + short int uMode; struct CHNL_IRP *pChirp; struct CHNL_MGR *pChnlMgr = NULL; @@ -483,7 +483,7 @@ DSP_STATUS WMD_CHNL_FlushIO(struct CHNL_OBJECT *hChnl, u32 dwTimeOut) { DSP_STATUS status = DSP_SOK; struct CHNL_OBJECT *pChnl = (struct CHNL_OBJECT *)hChnl; - CHNL_MODE uMode = -1; + short int uMode = -1; struct CHNL_MGR *pChnlMgr; struct CHNL_IOC chnlIOC; /* Check args: */ @@ -758,7 +758,7 @@ DSP_STATUS WMD_CHNL_GetMgrInfo(struct CHNL_MGR *hChnlMgr, u32 uChnlID, DSP_STATUS WMD_CHNL_Idle(struct CHNL_OBJECT *hChnl, u32 dwTimeOut, bool fFlush) { - CHNL_MODE uMode; + short int uMode; struct CHNL_MGR *pChnlMgr; DSP_STATUS status = DSP_SOK; @@ -786,7 +786,7 @@ DSP_STATUS WMD_CHNL_Idle(struct CHNL_OBJECT *hChnl, u32 dwTimeOut, * Open a new half-duplex channel to the DSP board. */ DSP_STATUS WMD_CHNL_Open(OUT struct CHNL_OBJECT **phChnl, - struct CHNL_MGR *hChnlMgr, CHNL_MODE uMode, + struct CHNL_MGR *hChnlMgr, short int uMode, u32 uChnlId, CONST IN struct CHNL_ATTRS *pAttrs) { DSP_STATUS status = DSP_SOK;