Misra C Fixes for dra72x DEV_EDMA3_LLD_02_12_00_20_RC10
authorSunil MS <x0190988@ti.com>
Mon, 3 Nov 2014 12:22:08 +0000 (17:52 +0530)
committerSunil MS <x0190988@ti.com>
Mon, 3 Nov 2014 13:08:38 +0000 (18:38 +0530)
MISRA.CAST.FUNC_PTR

Change-Id: Iac54a73bf271c3b56d328f34075734743503be13
Signed-off-by: Sunil MS <x0190988@ti.com>
packages/ti/sdo/edma3/drv/sample/src/platforms/sample_dra72x_arm_int_reg.c
packages/ti/sdo/edma3/rm/sample/src/platforms/sample_dra72x_arm_int_reg.c

index 20fe9f5553460ccf84ad6e80385b09d748065f61..8fbd9e58e6d22d382acad50c25f81cf41013cce8 100644 (file)
@@ -330,12 +330,14 @@ EDMA3_DRV_Result sampleInitXbarEvt(EDMA3_DRV_Handle hEdma,
     EDMA3_DRV_Result retVal = EDMA3_DRV_SOK;
     const EDMA3_DRV_GblXbarToChanConfigParams *sampleXbarToChanConfig =
                                 &(sampleXbarChanInitConfig[edma3Id][dsp_num]);
+    uint32_t sampleMapXbarEvtToChanTemp = (uint32_t)&sampleMapXbarEvtToChan;
+    uint32_t sampleConfigScrTemp = (uint32_t)&sampleConfigScr;
     if (hEdma != NULL)
         {
         retVal = EDMA3_DRV_initXbarEventMap(hEdma,
                                                                        sampleXbarToChanConfig,
-                                                                       (EDMA3_DRV_mapXbarEvtToChan)&sampleMapXbarEvtToChan,
-                                                                       (EDMA3_DRV_xbarConfigScr)&sampleConfigScr);
+                                                                       (EDMA3_DRV_mapXbarEvtToChan)sampleMapXbarEvtToChanTemp,
+                                                                       (EDMA3_DRV_xbarConfigScr)sampleConfigScrTemp);
         }
 
     return retVal;
index 1e88e5d73a277d6e75926a08f2c8164f627b8624..db889423b6d141e9588688e2601bea6d4fdabba2 100644 (file)
@@ -326,12 +326,14 @@ EDMA3_DRV_Result sampleInitXbarEvt(EDMA3_DRV_Handle hEdma,
     EDMA3_DRV_Result retVal = EDMA3_DRV_SOK;
     const EDMA3_DRV_GblXbarToChanConfigParams *sampleXbarToChanConfig =
                                 &(sampleXbarChanInitConfig[edma3Id][dsp_num]);
+    uint32_t sampleMapXbarEvtToChanTemp = (uint32_t)&sampleMapXbarEvtToChan;
+    uint32_t sampleConfigScrTemp = (uint32_t)&sampleConfigScr;
     if (hEdma != NULL)
         {
         retVal = EDMA3_DRV_initXbarEventMap(hEdma,
                                                                        sampleXbarToChanConfig,
-                                                                       (EDMA3_DRV_mapXbarEvtToChan)&sampleMapXbarEvtToChan,
-                                                                       (EDMA3_DRV_xbarConfigScr)&sampleConfigScr);
+                                                                       (EDMA3_DRV_mapXbarEvtToChan)sampleMapXbarEvtToChanTemp,
+                                                                       (EDMA3_DRV_xbarConfigScr)sampleConfigScrTemp);
         }
 
     return retVal;