Skip to content

Commit

Permalink
Staging: epl: remove CONST
Browse files Browse the repository at this point in the history
Just make it const

Cc: Daniel Krueger <daniel.krueger@systec-electronic.com>
Cc: Ronald Sieber <Ronald.Sieber@systec-electronic.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Apr 3, 2009
1 parent e6cc5ea commit 5d9d5eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
12 changes: 4 additions & 8 deletions drivers/staging/epl/EplObd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2185,12 +2185,10 @@ static tEplObdSize EplObdGetObjectSize(tEplObdSubEntryPtr pSubIndexEntry_p)
// The current position is not decleared. The string
// is located in ROM, therefor use default pointer.
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
// tEplObdVString of default value.
DataSize =
((CONST tEplObdVString *) pData)->
m_Size;
DataSize = ((const tEplObdVString *)pData)->m_Size;
}
}

Expand All @@ -2209,12 +2207,10 @@ static tEplObdSize EplObdGetObjectSize(tEplObdSubEntryPtr pSubIndexEntry_p)
// The current position is not decleared. The string
// is located in ROM, therefor use default pointer.
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
// tEplObdVString of default value.
DataSize =
((CONST tEplObdOString *) pData)->
m_Size;
DataSize = ((const tEplObdOString *)pData)->m_Size;
}
}
break;
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/epl/demo_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p);
// 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 bVarOut1_l;
Expand Down
4 changes: 0 additions & 4 deletions drivers/staging/epl/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
#define QWORD long long int
#endif

#ifndef CONST
#define CONST const // variables mapped to ROM (i.e. flash)
#endif

#define TRACE printk

// --- logic types ---
Expand Down

0 comments on commit 5d9d5eb

Please sign in to comment.