Skip to content

Commit

Permalink
Staging: epl: fix up epl/kernel/*.h files
Browse files Browse the repository at this point in the history
Only include a file if it's needed.

Also remove some unused comments from the boilerplate text.

And delete some empty .h files

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 046f45f commit 70e2db2
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 319 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/epl/EplNmtkCal.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@
****************************************************************************/

#include "kernel/EplNmtkCal.h"

// TODO: init function needed to prepare EplNmtkGetNmtState for
// io-controll-call from EplNmtuCal-Modul

Expand Down
1 change: 0 additions & 1 deletion drivers/staging/epl/EplObdkCal.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
****************************************************************************/

#include "EplInc.h"
#include "kernel/EplObdkCal.h"

/***************************************************************************/
/* */
Expand Down
12 changes: 0 additions & 12 deletions drivers/staging/epl/kernel/EplDllk.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@
#include "../EplDll.h"
#include "../EplEvent.h"

//---------------------------------------------------------------------------
// const defines
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// typedef
//---------------------------------------------------------------------------

typedef tEplKernel(*tEplDllkCbAsync) (tEplFrameInfo * pFrameInfo_p);

typedef struct {
Expand All @@ -108,10 +100,6 @@ struct _tEplDllkNodeInfo {

typedef struct _tEplDllkNodeInfo tEplDllkNodeInfo;

//---------------------------------------------------------------------------
// function prototypes
//---------------------------------------------------------------------------

#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_DLLK)) != 0)

tEplKernel EplDllkAddInstance(tEplDllkInitParam * pInitParam_p);
Expand Down
12 changes: 0 additions & 12 deletions drivers/staging/epl/kernel/EplDllkCal.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@
#include "../EplDll.h"
#include "../EplEvent.h"

//---------------------------------------------------------------------------
// const defines
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// typedef
//---------------------------------------------------------------------------

typedef struct {
unsigned long m_ulCurTxFrameCountGen;
unsigned long m_ulCurTxFrameCountNmt;
Expand All @@ -92,10 +84,6 @@ typedef struct {

} tEplDllkCalStatistics;

//---------------------------------------------------------------------------
// function prototypes
//---------------------------------------------------------------------------

#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_DLLK)) != 0)

tEplKernel EplDllkCalAddInstance(void);
Expand Down
12 changes: 0 additions & 12 deletions drivers/staging/epl/kernel/EplErrorHandlerk.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,6 @@

#include "../EplEvent.h"

//---------------------------------------------------------------------------
// const defines
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// typedef
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// function prototypes
//---------------------------------------------------------------------------

// init function
tEplKernel EplErrorHandlerkInit(void);

Expand Down
12 changes: 0 additions & 12 deletions drivers/staging/epl/kernel/EplEventk.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,6 @@

#include "../EplEvent.h"

//---------------------------------------------------------------------------
// const defines
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// typedef
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// function prototypes
//---------------------------------------------------------------------------

// init function
tEplKernel EplEventkInit(tEplSyncCb fpSyncCb);

Expand Down
11 changes: 0 additions & 11 deletions drivers/staging/epl/kernel/EplNmtk.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,6 @@
#include "../EplNmt.h"
#include "EplEventk.h"

//---------------------------------------------------------------------------
// const defines
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// typedef
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// function prototypes
//---------------------------------------------------------------------------
#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMTK)) != 0)
tEplKernel EplNmtkInit(EPL_MCO_DECL_PTR_INSTANCE_PTR);

Expand Down
89 changes: 0 additions & 89 deletions drivers/staging/epl/kernel/EplNmtkCal.h

This file was deleted.

17 changes: 1 addition & 16 deletions drivers/staging/epl/kernel/EplObdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,28 +68,13 @@
****************************************************************************/

#include "../EplObd.h"

#ifndef _EPLOBDK_H_
#define _EPLOBDK_H_

//---------------------------------------------------------------------------
// const defines
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// typedef
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// global variables
//---------------------------------------------------------------------------
#include "../EplObd.h"

extern u8 abEplObdTrashObject_g[8];

//---------------------------------------------------------------------------
// function prototypes
//---------------------------------------------------------------------------
#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_OBDK)) != 0)
// ---------------------------------------------------------------------
tEplKernel EplObdInit(EPL_MCO_DECL_PTR_INSTANCE_PTR_ tEplObdInitParam *pInitParam_p);
Expand Down
89 changes: 0 additions & 89 deletions drivers/staging/epl/kernel/EplObdkCal.h

This file was deleted.

12 changes: 0 additions & 12 deletions drivers/staging/epl/kernel/EplPdok.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,6 @@
#include "../EplEvent.h"
#include "../EplDll.h"

//---------------------------------------------------------------------------
// const defines
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// typedef
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// function prototypes
//---------------------------------------------------------------------------

// process events from queue (PDOs/frames and SoA for synchronization)
tEplKernel EplPdokProcess(tEplEvent * pEvent_p);

Expand Down
13 changes: 0 additions & 13 deletions drivers/staging/epl/kernel/EplPdokCal.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,6 @@
#define _EPL_PDOKCAL_H_

#include "../EplInc.h"
//#include "EplPdo.h"

//---------------------------------------------------------------------------
// const defines
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// typedef
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// function prototypes
//---------------------------------------------------------------------------

tEplKernel EplPdokCalAddInstance(void);

Expand Down
14 changes: 1 addition & 13 deletions drivers/staging/epl/kernel/EplTimerHighResk.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,10 @@
****************************************************************************/

#include "../EplTimer.h"

#ifndef _EPLTIMERHIGHRESK_H_
#define _EPLTIMERHIGHRESK_H_

//---------------------------------------------------------------------------
// const defines
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// typedef
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// function prototypes
//---------------------------------------------------------------------------
#include "../EplTimer.h"

tEplKernel EplTimerHighReskInit(void);

Expand Down
Loading

0 comments on commit 70e2db2

Please sign in to comment.