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

Commit 4dca4efc authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] mt2063: Fix some Coding styles at mt2063.h

parent 0e301442
Loading
Loading
Loading
Loading
+119 −152
Original line number Diff line number Diff line
@@ -4,19 +4,6 @@
#include <linux/dvb/frontend.h>
#include "dvb_frontend.h"

//context of mt2063_errordef.h  <Henry> ======================================
//#################################################################
//=================================================================

/*
** Note to users:  DO NOT EDIT THIS FILE
**
** If you wish to rename any of the "user defined" bits,
** it should be done in the user file that includes this
** source file (e.g. mt_userdef.h)
**
*/

#define MT2063_ERROR (1 << 31)
#define MT2063_USER_ERROR (1 << 30)

@@ -88,16 +75,8 @@
/*  Info: Downconverter frequency is out of range (may be reason for MT_DPC_UNLOCK) */
#define MT2063_DNC_RANGE                    (0x08000000)

//end of mt2063_errordef.h
//=================================================================
//#################################################################
//=================================================================

//context of mt2063_userdef.h   <Henry> ======================================
//#################################################################
//=================================================================
/*
**  Data Types
 *  Data Types
 */
#define MT2060_CNT 10

@@ -105,19 +84,18 @@ typedef unsigned char U8Data; /* type corresponds to 8 bits */
typedef unsigned int UData_t;	/*  type must be at least 32 bits   */
typedef int SData_t;		/*  type must be at least 32 bits   */
typedef void *Handle_t;		/*  memory pointer type             */
//typedef double          FData_t;        /*  floating point data type        */

#define MAX_UDATA         (4294967295)	/*  max value storable in UData_t   */

/*
** Define an MTxxxx_CNT macro for each type of tuner that will be built
** into your application (e.g., MT2121, MT2060). MT_TUNER_CNT
** must be set to the SUM of all of the MTxxxx_CNT macros.
**
** #define MT2050_CNT  (1)
** #define MT2060_CNT  (1)
** #define MT2111_CNT  (1)
** #define MT2121_CNT  (3)
 * Define an MTxxxx_CNT macro for each type of tuner that will be built
 * into your application (e.g., MT2121, MT2060). MT_TUNER_CNT
 * must be set to the SUM of all of the MTxxxx_CNT macros.
 *
 * #define MT2050_CNT  (1)
 * #define MT2060_CNT  (1)
 * #define MT2111_CNT  (1)
 * #define MT2121_CNT  (3)
 */

#define MT2063_CNT (1)
@@ -142,21 +120,14 @@ void MT2063_Sleep(Handle_t hUserData, UData_t nMinDelayTime);
UData_t MT2060_TunerGain(Handle_t hUserData, SData_t * pMeas);
#endif
#endif
//end of mt2063_userdef.h
//=================================================================
//#################################################################
//=================================================================

//context of mt2063_spruavoid.h <Henry> ======================================
//#################################################################
//=================================================================

/*
**  Constant defining the version of the following structure
**  and therefore the API for this code.
**
**  When compiling the tuner driver, the preprocessor will
**  check against this version number to make sure that
**  it matches the version that the tuner driver knows about.
 *  Constant defining the version of the following structure
 *  and therefore the API for this code.
 *
 *  When compiling the tuner driver, the preprocessor will
 *  check against this version number to make sure that
 *  it matches the version that the tuner driver knows about.
 */
/* Version 010201 => 1.21 */
#define MT2063_AVOID_SPURS_INFO_VERSION 010201
@@ -188,7 +159,7 @@ struct MT2063_ExclZone_t {
};

/*
**  Structure of data needed for Spur Avoidance
 *  Structure of data needed for Spur Avoidance
 */
struct MT2063_AvoidSpursData_t {
	UData_t nAS_Algorithm;
@@ -234,14 +205,10 @@ UData_t MT2063_AvoidSpurs(Handle_t h, struct MT2063_AvoidSpursData_t *pAS_Info);

UData_t MT2063_AvoidSpursVersion(void);

//end of mt2063_spuravoid.h
//=================================================================
//#################################################################
//=================================================================

/*
**  Values returned by the MT2063's on-chip temperature sensor
**  to be read/written.
 *  Values returned by the MT2063's on-chip temperature sensor
 *  to be read/written.
 */
enum MT2063_Temperature {
	MT2063_T_0C = 0,	/*  Temperature approx 0C           */
@@ -263,7 +230,7 @@ enum MT2063_Temperature {
};

/*
** Parameters for selecting GPIO bits
 * Parameters for selecting GPIO bits
 */
enum MT2063_GPIO_Attr {
	MT2063_GPIO_IN,
@@ -278,10 +245,10 @@ enum MT2063_GPIO_ID {
};

/*
**  Parameter for function MT2063_SetExtSRO that specifies the external
**  SRO drive frequency.
**
**  MT2063_EXT_SRO_OFF is the power-up default value.
 *  Parameter for function MT2063_SetExtSRO that specifies the external
 *  SRO drive frequency.
 *
 *  MT2063_EXT_SRO_OFF is the power-up default value.
 */
enum MT2063_Ext_SRO {
	MT2063_EXT_SRO_OFF,	/*  External SRO drive off          */
@@ -291,8 +258,8 @@ enum MT2063_Ext_SRO {
};

/*
**  Parameter for function MT2063_SetPowerMask that specifies the power down
**  of various sections of the MT2063.
 *  Parameter for function MT2063_SetPowerMask that specifies the power down
 *  of various sections of the MT2063.
 */
enum MT2063_Mask_Bits {
	MT2063_REG_SD = 0x0040,		/* Shutdown regulator                 */
@@ -313,8 +280,8 @@ enum MT2063_Mask_Bits {
};

/*
**  Parameter for function MT2063_GetParam & MT2063_SetParam that
**  specifies the tuning algorithm parameter to be read/written.
 *  Parameter for function MT2063_GetParam & MT2063_SetParam that
 *  specifies the tuning algorithm parameter to be read/written.
 */
enum MT2063_Param {
	/*  tuner address                                  set by MT2063_Open() */
@@ -462,7 +429,7 @@ enum MT2063_Param {
};

/*
**  Parameter for selecting tuner mode
 *  Parameter for selecting tuner mode
 */
enum MT2063_RCVR_MODES {
	MT2063_CABLE_QAM = 0,	/* Digital cable              */
@@ -475,7 +442,7 @@ enum MT2063_RCVR_MODES {
};

/*
**  Possible values for MT2063_DNC_OUTPUT
 *  Possible values for MT2063_DNC_OUTPUT
 */
enum MT2063_DNC_Output_Enable {
	MT2063_DNC_NONE = 0,
@@ -667,6 +634,6 @@ static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
	return NULL;
}

#endif //CONFIG_DVB_MT2063
#endif /* CONFIG_DVB_MT2063 */

#endif //__MT2063_H__
#endif /* __MT2063_H__ */