From: Felipe Contreras <[email protected]>

Signed-off-by: Felipe Contreras <[email protected]>
---
 drivers/dsp/bridge/wmd/tiomap_sm.c |   23 ++++++++++-------------
 1 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/drivers/dsp/bridge/wmd/tiomap_sm.c 
b/drivers/dsp/bridge/wmd/tiomap_sm.c
index d70f51e..0e18613 100644
--- a/drivers/dsp/bridge/wmd/tiomap_sm.c
+++ b/drivers/dsp/bridge/wmd/tiomap_sm.c
@@ -28,10 +28,9 @@
 extern struct platform_device omap_dspbridge_dev;
 #endif
 
-DSP_STATUS CHNLSM_EnableInterrupt(struct WMD_DEV_CONTEXT *hDevContext)
+DSP_STATUS CHNLSM_EnableInterrupt(struct WMD_DEV_CONTEXT *pDevContext)
 {
        DSP_STATUS status = DSP_SOK;
-       struct WMD_DEV_CONTEXT *pDevContext = hDevContext;
        u32 numMbxMsg;
        u32 mbxValue;
        struct CFG_HOSTRES resources;
@@ -78,11 +77,11 @@ DSP_STATUS CHNLSM_EnableInterrupt(struct WMD_DEV_CONTEXT 
*hDevContext)
        return status;
 }
 
-DSP_STATUS CHNLSM_DisableInterrupt(struct WMD_DEV_CONTEXT *hDevContext)
+DSP_STATUS CHNLSM_DisableInterrupt(struct WMD_DEV_CONTEXT *pDevContext)
 {
        struct CFG_HOSTRES resources;
 
-       DBG_Trace(DBG_ENTER, "CHNLSM_DisableInterrupt(0x%x)\n", hDevContext);
+       DBG_Trace(DBG_ENTER, "CHNLSM_DisableInterrupt(0x%x)\n", pDevContext);
 
        CFG_GetHostResources((struct CFG_DEVNODE *)DRV_GetFirstDevExtension(),
                             &resources);
@@ -91,10 +90,8 @@ DSP_STATUS CHNLSM_DisableInterrupt(struct WMD_DEV_CONTEXT 
*hDevContext)
        return DSP_SOK;
 }
 
-DSP_STATUS CHNLSM_InterruptDSP(struct WMD_DEV_CONTEXT *hDevContext)
+DSP_STATUS CHNLSM_InterruptDSP(struct WMD_DEV_CONTEXT *pDevContext)
 {
-       struct WMD_DEV_CONTEXT *pDevContext = hDevContext;
-
 #ifdef CONFIG_BRIDGE_DVFS
        struct dspbridge_platform_data *pdata =
                omap_dspbridge_dev.dev.platform_data;
@@ -136,7 +133,7 @@ DSP_STATUS CHNLSM_InterruptDSP(struct WMD_DEV_CONTEXT 
*hDevContext)
                /* Restart the peripheral clocks that were disabled only
                 * in DSP initiated Hibernation case.*/
                if (pDevContext->dwBrdState == BRD_DSP_HIBERNATION)
-                       DSP_PeripheralClocks_Enable(hDevContext, NULL);
+                       DSP_PeripheralClocks_Enable(pDevContext, NULL);
 
                pDevContext->dwBrdState = BRD_RUNNING;
        }
@@ -162,21 +159,21 @@ DSP_STATUS CHNLSM_InterruptDSP(struct WMD_DEV_CONTEXT 
*hDevContext)
        return DSP_SOK;
 }
 
-DSP_STATUS CHNLSM_InterruptDSP2(struct WMD_DEV_CONTEXT *hDevContext,
+DSP_STATUS CHNLSM_InterruptDSP2(struct WMD_DEV_CONTEXT *pDevContext,
                                u16 wMbVal)
 {
-       hDevContext->wIntrVal2Dsp = wMbVal;
-       return CHNLSM_InterruptDSP(hDevContext);
+       pDevContext->wIntrVal2Dsp = wMbVal;
+       return CHNLSM_InterruptDSP(pDevContext);
 }
 
-bool CHNLSM_ISR(struct WMD_DEV_CONTEXT *hDevContext, bool *pfSchedDPC,
+bool CHNLSM_ISR(struct WMD_DEV_CONTEXT *pDevContext, bool *pfSchedDPC,
                u16 *pwIntrVal)
 {
        struct CFG_HOSTRES resources;
        u32 numMbxMsg;
        u32 mbxValue;
 
-       DBG_Trace(DBG_ENTER, "CHNLSM_ISR(0x%x)\n", hDevContext);
+       DBG_Trace(DBG_ENTER, "CHNLSM_ISR(0x%x)\n", pDevContext);
 
        CFG_GetHostResources((struct CFG_DEVNODE *)DRV_GetFirstDevExtension(), 
&resources);
 
-- 
1.6.2.1.287.g9a8be

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to