From patchwork Wed Feb 3 00:44:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hebbar, Shivananda" X-Patchwork-Id: 76558 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 o130hwI0007114 for ; Wed, 3 Feb 2010 00:44:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756146Ab0BCAoO (ORCPT ); Tue, 2 Feb 2010 19:44:14 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:44198 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756056Ab0BCAoN convert rfc822-to-8bit (ORCPT ); Tue, 2 Feb 2010 19:44:13 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o130iAqu025819 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 2 Feb 2010 18:44:12 -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 o130i9Zl009274 for ; Wed, 3 Feb 2010 06:14:09 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Wed, 3 Feb 2010 06:14:09 +0530 From: "Hebbar, Shivananda" To: linux-omap Date: Wed, 3 Feb 2010 06:14:07 +0530 Subject: [Patch 7/8] DSPBRIDGE: typedef cleanup -BRD_STATUS Thread-Topic: [Patch 7/8] DSPBRIDGE: typedef cleanup -BRD_STATUS Thread-Index: Acqkaf40Sw/gCq4MTXKiFDGcsDNCpA== Message-ID: <19F8576C6E063C45BE387C64729E7394044A6B9677@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]); Wed, 03 Feb 2010 00:44:15 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/dspbridge/brddefs.h b/arch/arm/plat-omap/include/dspbridge/brddefs.h index ca503e2..ff83166 100644 --- a/arch/arm/plat-omap/include/dspbridge/brddefs.h +++ b/arch/arm/plat-omap/include/dspbridge/brddefs.h @@ -32,7 +32,6 @@ #define BRD_RETENTION 0x8 /* Retention mode */ #define BRD_DSP_HIBERNATION 0x9 /* DSP initiated hibernation */ #define BRD_ERROR 0xA /* Board state is Error */ - typedef u32 BRD_STATUS; /* BRD Object */ struct BRD_OBJECT; diff --git a/arch/arm/plat-omap/include/dspbridge/wmd.h b/arch/arm/plat-omap/include/dspbridge/wmd.h index 748b1c6..70f3970 100644 --- a/arch/arm/plat-omap/include/dspbridge/wmd.h +++ b/arch/arm/plat-omap/include/dspbridge/wmd.h @@ -244,7 +244,7 @@ */ typedef DSP_STATUS(* WMD_BRD_STATUS) (struct WMD_DEV_CONTEXT *hDevContext, - OUT BRD_STATUS * pdwState); + int *pdwState); /* * ======== WMD_BRD_Read ======== diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c index 84f4cb5..a4bd721 100644 --- a/drivers/dsp/bridge/rmgr/proc.c +++ b/drivers/dsp/bridge/rmgr/proc.c @@ -808,7 +808,7 @@ DSP_STATUS PROC_GetState(DSP_HPROCESSOR hProcessor, { DSP_STATUS status = DSP_SOK; struct PROC_OBJECT *pProcObject = (struct PROC_OBJECT *)hProcessor; - BRD_STATUS brdStatus; + int brdStatus; struct DEH_MGR *hDehMgr; DBC_Require(cRefs > 0); @@ -949,7 +949,7 @@ DSP_STATUS PROC_Load(DSP_HPROCESSOR hProcessor, IN CONST s32 iArgc, u32 dwExtEnd; u32 uProcId; #ifdef CONFIG_BRIDGE_DEBUG - BRD_STATUS uBrdState; + int uBrdState; #endif #ifdef OPT_LOAD_TIME_INSTRUMENTATION @@ -1442,7 +1442,7 @@ DSP_STATUS PROC_Start(DSP_HPROCESSOR hProcessor) struct COD_MANAGER *hCodMgr; /* Code manager handle */ u32 dwDspAddr; /* Loaded code's entry point. */ #ifdef CONFIG_BRIDGE_DEBUG - BRD_STATUS uBrdState; + int uBrdState; #endif DBC_Require(cRefs > 0); GT_1trace(PROC_DebugMask, GT_ENTER, "Entered PROC_Start, args:\n\t" @@ -1538,7 +1538,7 @@ DSP_STATUS PROC_Stop(DSP_HPROCESSOR hProcessor) u32 uNodeTabSize = 1; u32 uNumNodes = 0; u32 uNodesAllocated = 0; - BRD_STATUS uBrdState; + int uBrdState; DBC_Require(cRefs > 0); GT_1trace(PROC_DebugMask, GT_ENTER, "Entered PROC_Stop, args:\n\t" @@ -1730,7 +1730,7 @@ static DSP_STATUS PROC_Monitor(struct PROC_OBJECT *hProcObject) struct PROC_OBJECT *pProcObject = (struct PROC_OBJECT *)hProcObject; struct MSG_MGR *hMsgMgr; #ifdef CONFIG_BRIDGE_DEBUG - BRD_STATUS uBrdState; + int uBrdState; #endif DBC_Require(cRefs > 0); diff --git a/drivers/dsp/bridge/wmd/tiomap3430.c b/drivers/dsp/bridge/wmd/tiomap3430.c index 3b9052e..a17a9ff 100644 --- a/drivers/dsp/bridge/wmd/tiomap3430.c +++ b/drivers/dsp/bridge/wmd/tiomap3430.c @@ -93,7 +93,7 @@ static DSP_STATUS WMD_BRD_Read(struct WMD_DEV_CONTEXT *pDevContext, static DSP_STATUS WMD_BRD_Start(struct WMD_DEV_CONTEXT *pDevContext, u32 dwDSPAddr); static DSP_STATUS WMD_BRD_Status(struct WMD_DEV_CONTEXT *pDevContext, - OUT BRD_STATUS *pdwState); + int *pdwState); static DSP_STATUS WMD_BRD_Stop(struct WMD_DEV_CONTEXT *pDevContext); static DSP_STATUS WMD_BRD_Write(struct WMD_DEV_CONTEXT *pDevContext, IN u8 *pbHostBuf, @@ -926,7 +926,7 @@ static DSP_STATUS WMD_BRD_Delete(struct WMD_DEV_CONTEXT *hDevContext) * Returns the board status.