Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141726
b: refs/heads/master
c: 5d9d5eb
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 3, 2009
1 parent 743eda2 commit d827417
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6cc5eac8a823fb9674f46cd5050d607009b4a72
refs/heads/master: 5d9d5eb2bf0f31e41851c4cee01f7ba51dd11bf2
12 changes: 4 additions & 8 deletions trunk/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 trunk/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 trunk/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 d827417

Please sign in to comment.