Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 833dfbe7 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Staging: epl: run Lindent on *.c files



It's a start, still a mess...

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 e0ca0595
Loading
Loading
Loading
Loading
+665 −730

File changed.

Preview size limit exceeded, changes collapsed.

+1194 −1227

File changed.

Preview size limit exceeded, changes collapsed.

+907 −964

File changed.

Preview size limit exceeded, changes collapsed.

+127 −154
Original line number Original line Diff line number Diff line
@@ -75,7 +75,6 @@
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#endif
#endif



/***************************************************************************/
/***************************************************************************/
/*                                                                         */
/*                                                                         */
/*                                                                         */
/*                                                                         */
@@ -100,7 +99,6 @@
// local function prototypes
// local function prototypes
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



/***************************************************************************/
/***************************************************************************/
/*                                                                         */
/*                                                                         */
/*                                                                         */
/*                                                                         */
@@ -114,7 +112,6 @@
//
//
/***************************************************************************/
/***************************************************************************/



//=========================================================================//
//=========================================================================//
//                                                                         //
//                                                                         //
//          P R I V A T E   D E F I N I T I O N S                          //
//          P R I V A T E   D E F I N I T I O N S                          //
@@ -130,8 +127,7 @@
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------


#if ((EPL_API_PROCESS_IMAGE_SIZE_IN > 0) || (EPL_API_PROCESS_IMAGE_SIZE_OUT > 0))
#if ((EPL_API_PROCESS_IMAGE_SIZE_IN > 0) || (EPL_API_PROCESS_IMAGE_SIZE_OUT > 0))
    typedef struct
typedef struct {
    {
#if EPL_API_PROCESS_IMAGE_SIZE_IN > 0
#if EPL_API_PROCESS_IMAGE_SIZE_IN > 0
	BYTE m_abProcessImageInput[EPL_API_PROCESS_IMAGE_SIZE_IN];
	BYTE m_abProcessImageInput[EPL_API_PROCESS_IMAGE_SIZE_IN];
#endif
#endif
@@ -152,14 +148,12 @@ static tEplApiProcessImageInstance EplApiProcessImageInstance_g;
// local function prototypes
// local function prototypes
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------



//=========================================================================//
//=========================================================================//
//                                                                         //
//                                                                         //
//          P U B L I C   F U N C T I O N S                                //
//          P U B L I C   F U N C T I O N S                                //
//                                                                         //
//                                                                         //
//=========================================================================//
//=========================================================================//



//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//
//
// Function:    EplApiProcessImageSetup()
// Function:    EplApiProcessImageSetup()
@@ -186,112 +180,88 @@ tEplObdSize ObdSize;
#if EPL_API_PROCESS_IMAGE_SIZE_IN > 0
#if EPL_API_PROCESS_IMAGE_SIZE_IN > 0
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN;
	ObdSize = 1;
	ObdSize = 1;
    Ret = EplApiLinkObject(
	Ret = EplApiLinkObject(0x2000,
                            0x2000,
			       EplApiProcessImageInstance_g.
                            EplApiProcessImageInstance_g.m_abProcessImageInput,
			       m_abProcessImageInput, &uiVarEntries, &ObdSize,
                            &uiVarEntries,
                            &ObdSize,
			       1);
			       1);


	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN;
	ObdSize = 1;
	ObdSize = 1;
    Ret = EplApiLinkObject(
	Ret = EplApiLinkObject(0x2001,
                            0x2001,
			       EplApiProcessImageInstance_g.
                            EplApiProcessImageInstance_g.m_abProcessImageInput,
			       m_abProcessImageInput, &uiVarEntries, &ObdSize,
                            &uiVarEntries,
                            &ObdSize,
			       1);
			       1);


	ObdSize = 2;
	ObdSize = 2;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
    Ret = EplApiLinkObject(
	Ret = EplApiLinkObject(0x2010,
                            0x2010,
			       EplApiProcessImageInstance_g.
                            EplApiProcessImageInstance_g.m_abProcessImageInput,
			       m_abProcessImageInput, &uiVarEntries, &ObdSize,
                            &uiVarEntries,
                            &ObdSize,
			       1);
			       1);


	ObdSize = 2;
	ObdSize = 2;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
    Ret = EplApiLinkObject(
	Ret = EplApiLinkObject(0x2011,
                            0x2011,
			       EplApiProcessImageInstance_g.
                            EplApiProcessImageInstance_g.m_abProcessImageInput,
			       m_abProcessImageInput, &uiVarEntries, &ObdSize,
                            &uiVarEntries,
                            &ObdSize,
			       1);
			       1);


	ObdSize = 4;
	ObdSize = 4;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
    Ret = EplApiLinkObject(
	Ret = EplApiLinkObject(0x2020,
                            0x2020,
			       EplApiProcessImageInstance_g.
                            EplApiProcessImageInstance_g.m_abProcessImageInput,
			       m_abProcessImageInput, &uiVarEntries, &ObdSize,
                            &uiVarEntries,
                            &ObdSize,
			       1);
			       1);


	ObdSize = 4;
	ObdSize = 4;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
    Ret = EplApiLinkObject(
	Ret = EplApiLinkObject(0x2021,
                            0x2021,
			       EplApiProcessImageInstance_g.
                            EplApiProcessImageInstance_g.m_abProcessImageInput,
			       m_abProcessImageInput, &uiVarEntries, &ObdSize,
                            &uiVarEntries,
                            &ObdSize,
			       1);
			       1);
#endif
#endif


#if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0
#if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT;
	ObdSize = 1;
	ObdSize = 1;
    Ret = EplApiLinkObject(
	Ret = EplApiLinkObject(0x2030,
                            0x2030,
			       EplApiProcessImageInstance_g.
                            EplApiProcessImageInstance_g.m_abProcessImageOutput,
			       m_abProcessImageOutput, &uiVarEntries, &ObdSize,
                            &uiVarEntries,
                            &ObdSize,
			       1);
			       1);


	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT;
	ObdSize = 1;
	ObdSize = 1;
    Ret = EplApiLinkObject(
	Ret = EplApiLinkObject(0x2031,
                            0x2031,
			       EplApiProcessImageInstance_g.
                            EplApiProcessImageInstance_g.m_abProcessImageOutput,
			       m_abProcessImageOutput, &uiVarEntries, &ObdSize,
                            &uiVarEntries,
                            &ObdSize,
			       1);
			       1);


	ObdSize = 2;
	ObdSize = 2;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
    Ret = EplApiLinkObject(
	Ret = EplApiLinkObject(0x2040,
                            0x2040,
			       EplApiProcessImageInstance_g.
                            EplApiProcessImageInstance_g.m_abProcessImageOutput,
			       m_abProcessImageOutput, &uiVarEntries, &ObdSize,
                            &uiVarEntries,
                            &ObdSize,
			       1);
			       1);


	ObdSize = 2;
	ObdSize = 2;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
    Ret = EplApiLinkObject(
	Ret = EplApiLinkObject(0x2041,
                            0x2041,
			       EplApiProcessImageInstance_g.
                            EplApiProcessImageInstance_g.m_abProcessImageOutput,
			       m_abProcessImageOutput, &uiVarEntries, &ObdSize,
                            &uiVarEntries,
                            &ObdSize,
			       1);
			       1);


	ObdSize = 4;
	ObdSize = 4;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
    Ret = EplApiLinkObject(
	Ret = EplApiLinkObject(0x2050,
                            0x2050,
			       EplApiProcessImageInstance_g.
                            EplApiProcessImageInstance_g.m_abProcessImageOutput,
			       m_abProcessImageOutput, &uiVarEntries, &ObdSize,
                            &uiVarEntries,
                            &ObdSize,
			       1);
			       1);


	ObdSize = 4;
	ObdSize = 4;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
	uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
    Ret = EplApiLinkObject(
	Ret = EplApiLinkObject(0x2051,
                            0x2051,
			       EplApiProcessImageInstance_g.
                            EplApiProcessImageInstance_g.m_abProcessImageOutput,
			       m_abProcessImageOutput, &uiVarEntries, &ObdSize,
                            &uiVarEntries,
                            &ObdSize,
			       1);
			       1);
#endif
#endif


@@ -318,18 +288,21 @@ tEplKernel Ret = kEplSuccessful;
#if (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__)
#if (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__)
	copy_to_user(pPI_p->m_pImage,
	copy_to_user(pPI_p->m_pImage,
		     EplApiProcessImageInstance_g.m_abProcessImageInput,
		     EplApiProcessImageInstance_g.m_abProcessImageInput,
            min(pPI_p->m_uiSize, sizeof (EplApiProcessImageInstance_g.m_abProcessImageInput)));
		     min(pPI_p->m_uiSize,
			 sizeof(EplApiProcessImageInstance_g.
				m_abProcessImageInput)));
#else
#else
	EPL_MEMCPY(pPI_p->m_pImage,
	EPL_MEMCPY(pPI_p->m_pImage,
		   EplApiProcessImageInstance_g.m_abProcessImageInput,
		   EplApiProcessImageInstance_g.m_abProcessImageInput,
            min(pPI_p->m_uiSize, sizeof (EplApiProcessImageInstance_g.m_abProcessImageInput)));
		   min(pPI_p->m_uiSize,
		       sizeof(EplApiProcessImageInstance_g.
			      m_abProcessImageInput)));
#endif
#endif
#endif
#endif


	return Ret;
	return Ret;
}
}



//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// Function:    EplApiProcessImageExchangeOut()
// Function:    EplApiProcessImageExchangeOut()
//
//
@@ -350,25 +323,25 @@ tEplKernel Ret = kEplSuccessful;
#if (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__)
#if (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__)
	copy_from_user(EplApiProcessImageInstance_g.m_abProcessImageOutput,
	copy_from_user(EplApiProcessImageInstance_g.m_abProcessImageOutput,
		       pPI_p->m_pImage,
		       pPI_p->m_pImage,
            min(pPI_p->m_uiSize, sizeof (EplApiProcessImageInstance_g.m_abProcessImageOutput)));
		       min(pPI_p->m_uiSize,
			   sizeof(EplApiProcessImageInstance_g.
				  m_abProcessImageOutput)));
#else
#else
	EPL_MEMCPY(EplApiProcessImageInstance_g.m_abProcessImageOutput,
	EPL_MEMCPY(EplApiProcessImageInstance_g.m_abProcessImageOutput,
		   pPI_p->m_pImage,
		   pPI_p->m_pImage,
            min(pPI_p->m_uiSize, sizeof (EplApiProcessImageInstance_g.m_abProcessImageOutput)));
		   min(pPI_p->m_uiSize,
		       sizeof(EplApiProcessImageInstance_g.
			      m_abProcessImageOutput)));
#endif
#endif
#endif
#endif


	return Ret;
	return Ret;
}
}



//=========================================================================//
//=========================================================================//
//                                                                         //
//                                                                         //
//          P R I V A T E   F U N C T I O N S                              //
//          P R I V A T E   F U N C T I O N S                              //
//                                                                         //
//                                                                         //
//=========================================================================//
//=========================================================================//




// EOF
// EOF
+3032 −2761

File changed.

Preview size limit exceeded, changes collapsed.

Loading