From patchwork Sat Feb 6 01:23:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hebbar, Shivananda" X-Patchwork-Id: 77482 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 o161Nfi3003101 for ; Sat, 6 Feb 2010 01:23:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933824Ab0BFBXk (ORCPT ); Fri, 5 Feb 2010 20:23:40 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:53533 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933223Ab0BFBXk convert rfc822-to-8bit (ORCPT ); Fri, 5 Feb 2010 20:23:40 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id o161NbuB002382 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 5 Feb 2010 19:23:39 -0600 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id o161Nabr001564 for ; Sat, 6 Feb 2010 06:53:36 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde71.ent.ti.com ([172.24.170.149]) with mapi; Sat, 6 Feb 2010 06:53:36 +0530 From: "Hebbar, Shivananda" To: linux-omap Date: Sat, 6 Feb 2010 06:53:34 +0530 Subject: [Patch 7/8] DSPBRIDGE: typedef cleanup -BRD_STATUS Thread-Topic: [Patch 7/8] DSPBRIDGE: typedef cleanup -BRD_STATUS Thread-Index: Acqmyv/3EI6/4pgrQmG+SeVMbM5BwA== Message-ID: <19F8576C6E063C45BE387C64729E7394044A776238@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:23:41 +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 439dbe8..5a33df7 100644 --- a/drivers/dsp/bridge/rmgr/proc.c +++ b/drivers/dsp/bridge/rmgr/proc.c @@ -808,7 +808,7 @@ DSP_STATUS PROC_GetState(void *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(void *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(void *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(void *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. */ static DSP_STATUS WMD_BRD_Status(struct WMD_DEV_CONTEXT *hDevContext, - OUT BRD_STATUS *pdwState) + int *pdwState) { struct WMD_DEV_CONTEXT *pDevContext = hDevContext; *pdwState = pDevContext->dwBrdState;