Commit 5d9d5eb2 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: epl: remove CONST

Just make it const

Cc: Daniel Krueger <daniel.krueger@systec-electronic.com>
Cc: Ronald Sieber <Ronald.Sieber@systec-electronic.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e6cc5eac
...@@ -2185,12 +2185,10 @@ static tEplObdSize EplObdGetObjectSize(tEplObdSubEntryPtr pSubIndexEntry_p) ...@@ -2185,12 +2185,10 @@ static tEplObdSize EplObdGetObjectSize(tEplObdSubEntryPtr pSubIndexEntry_p)
// The current position is not decleared. The string // The current position is not decleared. The string
// is located in ROM, therefor use default pointer. // is located in ROM, therefor use default pointer.
pData = (void *)pSubIndexEntry_p->m_pDefault; pData = (void *)pSubIndexEntry_p->m_pDefault;
if ((CONST void *)pData != (CONST void *)NULL) { if ((const void *)pData != (const void *)NULL) {
// The max. size of strings defined by STRING-Macro is stored in // The max. size of strings defined by STRING-Macro is stored in
// tEplObdVString of default value. // tEplObdVString of default value.
DataSize = DataSize = ((const tEplObdVString *)pData)->m_Size;
((CONST tEplObdVString *) pData)->
m_Size;
} }
} }
...@@ -2209,12 +2207,10 @@ static tEplObdSize EplObdGetObjectSize(tEplObdSubEntryPtr pSubIndexEntry_p) ...@@ -2209,12 +2207,10 @@ static tEplObdSize EplObdGetObjectSize(tEplObdSubEntryPtr pSubIndexEntry_p)
// The current position is not decleared. The string // The current position is not decleared. The string
// is located in ROM, therefor use default pointer. // is located in ROM, therefor use default pointer.
pData = (void *)pSubIndexEntry_p->m_pDefault; pData = (void *)pSubIndexEntry_p->m_pDefault;
if ((CONST void *)pData != (CONST void *)NULL) { if ((const void *)pData != (const void *)NULL) {
// The max. size of strings defined by STRING-Macro is stored in // The max. size of strings defined by STRING-Macro is stored in
// tEplObdVString of default value. // tEplObdVString of default value.
DataSize = DataSize = ((const tEplObdOString *)pData)->m_Size;
((CONST tEplObdOString *) pData)->
m_Size;
} }
} }
break; break;
......
...@@ -148,7 +148,7 @@ void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p); ...@@ -148,7 +148,7 @@ void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p);
// modul globale vars // modul globale vars
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
CONST BYTE abMacAddr[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const BYTE abMacAddr[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
BYTE bVarIn1_l; BYTE bVarIn1_l;
BYTE bVarOut1_l; BYTE bVarOut1_l;
......
...@@ -27,10 +27,6 @@ ...@@ -27,10 +27,6 @@
#define QWORD long long int #define QWORD long long int
#endif #endif
#ifndef CONST
#define CONST const // variables mapped to ROM (i.e. flash)
#endif
#define TRACE printk #define TRACE printk
// --- logic types --- // --- logic types ---
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment