Commit 0e301442 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] mt2063: CodingStyle fixes

convert to Unix eol, run Lindent and remove bad whitespaces
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 223c7b05
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
** **
*/ */
#define MT2063_ERROR (1 << 31) #define MT2063_ERROR (1 << 31)
#define MT2063_USER_ERROR (1 << 30) #define MT2063_USER_ERROR (1 << 30)
...@@ -26,7 +24,6 @@ ...@@ -26,7 +24,6 @@
#define MT2063_IS_ERROR(s) (((s) >> 30) != 0) #define MT2063_IS_ERROR(s) (((s) >> 30) != 0)
#define MT2063_NO_ERROR(s) (((s) >> 30) == 0) #define MT2063_NO_ERROR(s) (((s) >> 30) == 0)
#define MT2063_OK (0x00000000) #define MT2063_OK (0x00000000)
/* Unknown error */ /* Unknown error */
...@@ -107,7 +104,7 @@ ...@@ -107,7 +104,7 @@
typedef unsigned char U8Data; /* type corresponds to 8 bits */ typedef unsigned char U8Data; /* type corresponds to 8 bits */
typedef unsigned int UData_t; /* type must be at least 32 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 int SData_t; /* type must be at least 32 bits */
typedef void * Handle_t; /* memory pointer type */ typedef void *Handle_t; /* memory pointer type */
//typedef double FData_t; /* floating point data type */ //typedef double FData_t; /* floating point data type */
#define MAX_UDATA (4294967295) /* max value storable in UData_t */ #define MAX_UDATA (4294967295) /* max value storable in UData_t */
...@@ -132,26 +129,17 @@ typedef void * Handle_t; /* memory pointer type */ ...@@ -132,26 +129,17 @@ typedef void * Handle_t; /* memory pointer type */
UData_t MT2063_WriteSub(Handle_t hUserData, UData_t MT2063_WriteSub(Handle_t hUserData,
UData_t addr, UData_t addr,
U8Data subAddress, U8Data subAddress, U8Data * pData, UData_t cnt);
U8Data *pData,
UData_t cnt);
UData_t MT2063_ReadSub(Handle_t hUserData, UData_t MT2063_ReadSub(Handle_t hUserData,
UData_t addr, UData_t addr,
U8Data subAddress, U8Data subAddress, U8Data * pData, UData_t cnt);
U8Data *pData,
UData_t cnt);
void MT2063_Sleep(Handle_t hUserData,
UData_t nMinDelayTime);
void MT2063_Sleep(Handle_t hUserData, UData_t nMinDelayTime);
#if defined(MT2060_CNT) #if defined(MT2060_CNT)
#if MT2060_CNT > 0 #if MT2060_CNT > 0
UData_t MT2060_TunerGain(Handle_t hUserData, UData_t MT2060_TunerGain(Handle_t hUserData, SData_t * pMeas);
SData_t* pMeas);
#endif #endif
#endif #endif
//end of mt2063_userdef.h //end of mt2063_userdef.h
...@@ -159,7 +147,6 @@ UData_t MT2060_TunerGain(Handle_t hUserData, ...@@ -159,7 +147,6 @@ UData_t MT2060_TunerGain(Handle_t hUserData,
//################################################################# //#################################################################
//================================================================= //=================================================================
//context of mt2063_spruavoid.h <Henry> ====================================== //context of mt2063_spruavoid.h <Henry> ======================================
//################################################################# //#################################################################
//================================================================= //=================================================================
...@@ -174,7 +161,6 @@ UData_t MT2060_TunerGain(Handle_t hUserData, ...@@ -174,7 +161,6 @@ UData_t MT2060_TunerGain(Handle_t hUserData,
/* Version 010201 => 1.21 */ /* Version 010201 => 1.21 */
#define MT2063_AVOID_SPURS_INFO_VERSION 010201 #define MT2063_AVOID_SPURS_INFO_VERSION 010201
/* DECT Frequency Avoidance */ /* DECT Frequency Avoidance */
#define MT2063_DECT_AVOID_US_FREQS 0x00000001 #define MT2063_DECT_AVOID_US_FREQS 0x00000001
...@@ -184,33 +170,27 @@ UData_t MT2060_TunerGain(Handle_t hUserData, ...@@ -184,33 +170,27 @@ UData_t MT2060_TunerGain(Handle_t hUserData,
#define MT2063_EXCLUDE_EURO_DECT_FREQUENCIES(s) (((s) & MT2063_DECT_AVOID_EURO_FREQS) != 0) #define MT2063_EXCLUDE_EURO_DECT_FREQUENCIES(s) (((s) & MT2063_DECT_AVOID_EURO_FREQS) != 0)
enum MT2063_DECT_Avoid_Type {
enum MT2063_DECT_Avoid_Type
{
MT2063_NO_DECT_AVOIDANCE = 0, /* Do not create DECT exclusion zones. */ MT2063_NO_DECT_AVOIDANCE = 0, /* Do not create DECT exclusion zones. */
MT2063_AVOID_US_DECT = MT2063_DECT_AVOID_US_FREQS, /* Avoid US DECT frequencies. */ MT2063_AVOID_US_DECT = MT2063_DECT_AVOID_US_FREQS, /* Avoid US DECT frequencies. */
MT2063_AVOID_EURO_DECT = MT2063_DECT_AVOID_EURO_FREQS, /* Avoid European DECT frequencies. */ MT2063_AVOID_EURO_DECT = MT2063_DECT_AVOID_EURO_FREQS, /* Avoid European DECT frequencies. */
MT2063_AVOID_BOTH /* Avoid both regions. Not typically used. */ MT2063_AVOID_BOTH /* Avoid both regions. Not typically used. */
};
} ;
#define MT2063_MAX_ZONES 48 #define MT2063_MAX_ZONES 48
struct MT2063_ExclZone_t; struct MT2063_ExclZone_t;
struct MT2063_ExclZone_t struct MT2063_ExclZone_t {
{
UData_t min_; UData_t min_;
UData_t max_; UData_t max_;
struct MT2063_ExclZone_t* next_; struct MT2063_ExclZone_t *next_;
}; };
/* /*
** Structure of data needed for Spur Avoidance ** Structure of data needed for Spur Avoidance
*/ */
struct MT2063_AvoidSpursData_t struct MT2063_AvoidSpursData_t {
{
UData_t nAS_Algorithm; UData_t nAS_Algorithm;
UData_t f_ref; UData_t f_ref;
UData_t f_in; UData_t f_in;
...@@ -234,25 +214,23 @@ struct MT2063_AvoidSpursData_t ...@@ -234,25 +214,23 @@ struct MT2063_AvoidSpursData_t
UData_t bSpurAvoided; UData_t bSpurAvoided;
UData_t nSpursFound; UData_t nSpursFound;
UData_t nZones; UData_t nZones;
struct MT2063_ExclZone_t* freeZones; struct MT2063_ExclZone_t *freeZones;
struct MT2063_ExclZone_t* usedZones; struct MT2063_ExclZone_t *usedZones;
struct MT2063_ExclZone_t MT2063_ExclZones[MT2063_MAX_ZONES]; struct MT2063_ExclZone_t MT2063_ExclZones[MT2063_MAX_ZONES];
}; };
UData_t MT2063_RegisterTuner(struct MT2063_AvoidSpursData_t* pAS_Info); UData_t MT2063_RegisterTuner(struct MT2063_AvoidSpursData_t *pAS_Info);
void MT2063_UnRegisterTuner(struct MT2063_AvoidSpursData_t* pAS_Info); void MT2063_UnRegisterTuner(struct MT2063_AvoidSpursData_t *pAS_Info);
void MT2063_ResetExclZones(struct MT2063_AvoidSpursData_t* pAS_Info); void MT2063_ResetExclZones(struct MT2063_AvoidSpursData_t *pAS_Info);
void MT2063_AddExclZone(struct MT2063_AvoidSpursData_t* pAS_Info, void MT2063_AddExclZone(struct MT2063_AvoidSpursData_t *pAS_Info,
UData_t f_min, UData_t f_min, UData_t f_max);
UData_t f_max);
UData_t MT2063_ChooseFirstIF(struct MT2063_AvoidSpursData_t* pAS_Info); UData_t MT2063_ChooseFirstIF(struct MT2063_AvoidSpursData_t *pAS_Info);
UData_t MT2063_AvoidSpurs(Handle_t h, UData_t MT2063_AvoidSpurs(Handle_t h, struct MT2063_AvoidSpursData_t *pAS_Info);
struct MT2063_AvoidSpursData_t* pAS_Info);
UData_t MT2063_AvoidSpursVersion(void); UData_t MT2063_AvoidSpursVersion(void);
...@@ -261,13 +239,11 @@ UData_t MT2063_AvoidSpursVersion(void); ...@@ -261,13 +239,11 @@ UData_t MT2063_AvoidSpursVersion(void);
//################################################################# //#################################################################
//================================================================= //=================================================================
/* /*
** Values returned by the MT2063's on-chip temperature sensor ** Values returned by the MT2063's on-chip temperature sensor
** to be read/written. ** to be read/written.
*/ */
enum MT2063_Temperature enum MT2063_Temperature {
{
MT2063_T_0C = 0, /* Temperature approx 0C */ MT2063_T_0C = 0, /* Temperature approx 0C */
MT2063_T_10C, /* Temperature approx 10C */ MT2063_T_10C, /* Temperature approx 10C */
MT2063_T_20C, /* Temperature approx 20C */ MT2063_T_20C, /* Temperature approx 20C */
...@@ -286,46 +262,39 @@ enum MT2063_Temperature ...@@ -286,46 +262,39 @@ enum MT2063_Temperature
MT2063_T_150C, /* Temperature approx 150C */ MT2063_T_150C, /* Temperature approx 150C */
}; };
/* /*
** Parameters for selecting GPIO bits ** Parameters for selecting GPIO bits
*/ */
enum MT2063_GPIO_Attr enum MT2063_GPIO_Attr {
{
MT2063_GPIO_IN, MT2063_GPIO_IN,
MT2063_GPIO_DIR, MT2063_GPIO_DIR,
MT2063_GPIO_OUT, MT2063_GPIO_OUT,
}; };
enum MT2063_GPIO_ID enum MT2063_GPIO_ID {
{
MT2063_GPIO0, MT2063_GPIO0,
MT2063_GPIO1, MT2063_GPIO1,
MT2063_GPIO2, MT2063_GPIO2,
}; };
/* /*
** Parameter for function MT2063_SetExtSRO that specifies the external ** Parameter for function MT2063_SetExtSRO that specifies the external
** SRO drive frequency. ** SRO drive frequency.
** **
** MT2063_EXT_SRO_OFF is the power-up default value. ** MT2063_EXT_SRO_OFF is the power-up default value.
*/ */
enum MT2063_Ext_SRO enum MT2063_Ext_SRO {
{
MT2063_EXT_SRO_OFF, /* External SRO drive off */ MT2063_EXT_SRO_OFF, /* External SRO drive off */
MT2063_EXT_SRO_BY_4, /* External SRO drive divide by 4 */ MT2063_EXT_SRO_BY_4, /* External SRO drive divide by 4 */
MT2063_EXT_SRO_BY_2, /* External SRO drive divide by 2 */ MT2063_EXT_SRO_BY_2, /* External SRO drive divide by 2 */
MT2063_EXT_SRO_BY_1 /* External SRO drive divide by 1 */ MT2063_EXT_SRO_BY_1 /* External SRO drive divide by 1 */
}; };
/* /*
** Parameter for function MT2063_SetPowerMask that specifies the power down ** Parameter for function MT2063_SetPowerMask that specifies the power down
** of various sections of the MT2063. ** of various sections of the MT2063.
*/ */
enum MT2063_Mask_Bits enum MT2063_Mask_Bits {
{
MT2063_REG_SD = 0x0040, /* Shutdown regulator */ MT2063_REG_SD = 0x0040, /* Shutdown regulator */
MT2063_SRO_SD = 0x0020, /* Shutdown SRO */ MT2063_SRO_SD = 0x0020, /* Shutdown SRO */
MT2063_AFC_SD = 0x0010, /* Shutdown AFC A/D */ MT2063_AFC_SD = 0x0010, /* Shutdown AFC A/D */
...@@ -343,13 +312,11 @@ enum MT2063_Mask_Bits ...@@ -343,13 +312,11 @@ enum MT2063_Mask_Bits
MT2063_NONE_SD = 0x0000 /* No shutdown bits */ MT2063_NONE_SD = 0x0000 /* No shutdown bits */
}; };
/* /*
** Parameter for function MT2063_GetParam & MT2063_SetParam that ** Parameter for function MT2063_GetParam & MT2063_SetParam that
** specifies the tuning algorithm parameter to be read/written. ** specifies the tuning algorithm parameter to be read/written.
*/ */
enum MT2063_Param enum MT2063_Param {
{
/* tuner address set by MT2063_Open() */ /* tuner address set by MT2063_Open() */
MT2063_IC_ADDR, MT2063_IC_ADDR,
...@@ -492,15 +459,12 @@ enum MT2063_Param ...@@ -492,15 +459,12 @@ enum MT2063_Param
MT2063_CTFILT_SW, MT2063_CTFILT_SW,
MT2063_EOP /* last entry in enumerated list */ MT2063_EOP /* last entry in enumerated list */
}; };
/* /*
** Parameter for selecting tuner mode ** Parameter for selecting tuner mode
*/ */
enum MT2063_RCVR_MODES enum MT2063_RCVR_MODES {
{
MT2063_CABLE_QAM = 0, /* Digital cable */ MT2063_CABLE_QAM = 0, /* Digital cable */
MT2063_CABLE_ANALOG, /* Analog cable */ MT2063_CABLE_ANALOG, /* Analog cable */
MT2063_OFFAIR_COFDM, /* Digital offair */ MT2063_OFFAIR_COFDM, /* Digital offair */
...@@ -510,11 +474,10 @@ enum MT2063_RCVR_MODES ...@@ -510,11 +474,10 @@ enum MT2063_RCVR_MODES
MT2063_NUM_RCVR_MODES MT2063_NUM_RCVR_MODES
}; };
/* /*
** Possible values for MT2063_DNC_OUTPUT ** Possible values for MT2063_DNC_OUTPUT
*/ */
enum MT2063_DNC_Output_Enable{ enum MT2063_DNC_Output_Enable {
MT2063_DNC_NONE = 0, MT2063_DNC_NONE = 0,
MT2063_DNC_1, MT2063_DNC_1,
MT2063_DNC_2, MT2063_DNC_2,
...@@ -525,8 +488,7 @@ enum MT2063_DNC_Output_Enable{ ...@@ -525,8 +488,7 @@ enum MT2063_DNC_Output_Enable{
** Two-wire serial bus subaddresses of the tuner registers. ** Two-wire serial bus subaddresses of the tuner registers.
** Also known as the tuner's register addresses. ** Also known as the tuner's register addresses.
*/ */
enum MT2063_Register_Offsets enum MT2063_Register_Offsets {
{
MT2063_REG_PART_REV = 0, /* 0x00: Part/Rev Code */ MT2063_REG_PART_REV = 0, /* 0x00: Part/Rev Code */
MT2063_REG_LO1CQ_1, /* 0x01: LO1C Queued Byte 1 */ MT2063_REG_LO1CQ_1, /* 0x01: LO1C Queued Byte 1 */
MT2063_REG_LO1CQ_2, /* 0x02: LO1C Queued Byte 2 */ MT2063_REG_LO1CQ_2, /* 0x02: LO1C Queued Byte 2 */
...@@ -591,8 +553,7 @@ enum MT2063_Register_Offsets ...@@ -591,8 +553,7 @@ enum MT2063_Register_Offsets
MT2063_REG_END_REGS MT2063_REG_END_REGS
}; };
struct MT2063_Info_t struct MT2063_Info_t {
{
Handle_t handle; Handle_t handle;
Handle_t hUserData; Handle_t hUserData;
UData_t address; UData_t address;
...@@ -605,10 +566,10 @@ struct MT2063_Info_t ...@@ -605,10 +566,10 @@ struct MT2063_Info_t
UData_t CTFiltMax[31]; UData_t CTFiltMax[31];
UData_t num_regs; UData_t num_regs;
U8Data reg[MT2063_REG_END_REGS]; U8Data reg[MT2063_REG_END_REGS];
} ; };
typedef struct MT2063_Info_t* pMT2063_Info_t; typedef struct MT2063_Info_t *pMT2063_Info_t;
enum MTTune_atv_standard{ enum MTTune_atv_standard {
MTTUNEA_UNKNOWN = 0, MTTUNEA_UNKNOWN = 0,
MTTUNEA_PAL_B, MTTUNEA_PAL_B,
MTTUNEA_PAL_G, MTTUNEA_PAL_G,
...@@ -625,46 +586,31 @@ enum MTTune_atv_standard{ ...@@ -625,46 +586,31 @@ enum MTTune_atv_standard{
/* ====== Functions which are declared in MT2063.c File ======= */ /* ====== Functions which are declared in MT2063.c File ======= */
UData_t MT2063_Open(UData_t MT2063_Addr, UData_t MT2063_Open(UData_t MT2063_Addr,
Handle_t* hMT2063, Handle_t * hMT2063, Handle_t hUserData);
Handle_t hUserData);
UData_t MT2063_Close(Handle_t hMT2063); UData_t MT2063_Close(Handle_t hMT2063);
UData_t MT2063_Tune(Handle_t h, UData_t MT2063_Tune(Handle_t h, UData_t f_in); /* RF input center frequency */
UData_t f_in); /* RF input center frequency */
UData_t MT2063_GetGPIO(Handle_t h, enum MT2063_GPIO_ID gpio_id, enum MT2063_GPIO_Attr attr, UData_t* value);
UData_t MT2063_GetGPIO(Handle_t h, enum MT2063_GPIO_ID gpio_id,
enum MT2063_GPIO_Attr attr, UData_t * value);
UData_t MT2063_GetLocked(Handle_t h); UData_t MT2063_GetLocked(Handle_t h);
UData_t MT2063_GetParam(Handle_t h, enum MT2063_Param param, UData_t * pValue);
UData_t MT2063_GetParam(Handle_t h, UData_t MT2063_GetReg(Handle_t h, U8Data reg, U8Data * val);
enum MT2063_Param param,
UData_t* pValue);
UData_t MT2063_GetReg(Handle_t h,
U8Data reg,
U8Data* val);
UData_t MT2063_GetTemp(Handle_t h, enum MT2063_Temperature* value); UData_t MT2063_GetTemp(Handle_t h, enum MT2063_Temperature *value);
UData_t MT2063_GetUserData(Handle_t h, Handle_t * hUserData);
UData_t MT2063_GetUserData(Handle_t h,
Handle_t* hUserData);
UData_t MT2063_ReInit(Handle_t h); UData_t MT2063_ReInit(Handle_t h);
UData_t MT2063_SetGPIO(Handle_t h, enum MT2063_GPIO_ID gpio_id,
enum MT2063_GPIO_Attr attr, UData_t value);
UData_t MT2063_SetGPIO(Handle_t h, enum MT2063_GPIO_ID gpio_id, enum MT2063_GPIO_Attr attr, UData_t value); UData_t MT2063_SetParam(Handle_t h, enum MT2063_Param param, UData_t nValue);
UData_t MT2063_SetParam(Handle_t h,
enum MT2063_Param param,
UData_t nValue);
UData_t MT2063_SetPowerMaskBits(Handle_t h, enum MT2063_Mask_Bits Bits); UData_t MT2063_SetPowerMaskBits(Handle_t h, enum MT2063_Mask_Bits Bits);
...@@ -678,13 +624,10 @@ UData_t MT2063_SoftwareShutdown(Handle_t h, U8Data Shutdown); ...@@ -678,13 +624,10 @@ UData_t MT2063_SoftwareShutdown(Handle_t h, U8Data Shutdown);
UData_t MT2063_SetExtSRO(Handle_t h, enum MT2063_Ext_SRO Ext_SRO_Setting); UData_t MT2063_SetExtSRO(Handle_t h, enum MT2063_Ext_SRO Ext_SRO_Setting);
UData_t MT2063_SetReg(Handle_t h, UData_t MT2063_SetReg(Handle_t h, U8Data reg, U8Data val);
U8Data reg,
U8Data val);
UData_t MT_Tune_atv(Handle_t h, UData_t f_in,UData_t bw_in, enum MTTune_atv_standard tv_type);
UData_t MT_Tune_atv(Handle_t h, UData_t f_in, UData_t bw_in,
enum MTTune_atv_standard tv_type);
struct mt2063_config { struct mt2063_config {
u8 tuner_address; u8 tuner_address;
......
static unsigned int mt2063_setTune(struct dvb_frontend *fe, UData_t f_in,
static unsigned int mt2063_setTune(struct dvb_frontend *fe, UData_t f_in,UData_t bw_in, enum MTTune_atv_standard tv_type) UData_t bw_in,
enum MTTune_atv_standard tv_type)
{ {
//return (int)MT_Tune_atv(h, f_in, bw_in, tv_type); //return (int)MT_Tune_atv(h, f_in, bw_in, tv_type);
...@@ -18,7 +19,9 @@ static unsigned int mt2063_setTune(struct dvb_frontend *fe, UData_t f_in,UData_t ...@@ -18,7 +19,9 @@ static unsigned int mt2063_setTune(struct dvb_frontend *fe, UData_t f_in,UData_t
if (&frontend_ops->tuner_ops) if (&frontend_ops->tuner_ops)
tuner_ops = &frontend_ops->tuner_ops; tuner_ops = &frontend_ops->tuner_ops;
if (tuner_ops->set_state) { if (tuner_ops->set_state) {
if ((err = tuner_ops->set_state(fe, DVBFE_TUNER_FREQUENCY, &t_state)) < 0) { if ((err =
tuner_ops->set_state(fe, DVBFE_TUNER_FREQUENCY,
&t_state)) < 0) {
printk("%s: Invalid parameter\n", __func__); printk("%s: Invalid parameter\n", __func__);
return err; return err;
} }
...@@ -39,7 +42,9 @@ static unsigned int mt2063_lockStatus(struct dvb_frontend *fe) ...@@ -39,7 +42,9 @@ static unsigned int mt2063_lockStatus(struct dvb_frontend *fe)
if (&frontend_ops->tuner_ops) if (&frontend_ops->tuner_ops)
tuner_ops = &frontend_ops->tuner_ops; tuner_ops = &frontend_ops->tuner_ops;
if (tuner_ops->get_state) { if (tuner_ops->get_state) {
if ((err = tuner_ops->get_state(fe, DVBFE_TUNER_REFCLOCK, &t_state)) < 0) { if ((err =
tuner_ops->get_state(fe, DVBFE_TUNER_REFCLOCK,
&t_state)) < 0) {
printk("%s: Invalid parameter\n", __func__); printk("%s: Invalid parameter\n", __func__);
return err; return err;
} }
...@@ -59,7 +64,9 @@ static unsigned int tuner_MT2063_Open(struct dvb_frontend *fe) ...@@ -59,7 +64,9 @@ static unsigned int tuner_MT2063_Open(struct dvb_frontend *fe)
if (&frontend_ops->tuner_ops) if (&frontend_ops->tuner_ops)
tuner_ops = &frontend_ops->tuner_ops; tuner_ops = &frontend_ops->tuner_ops;
if (tuner_ops->set_state) { if (tuner_ops->set_state) {
if ((err = tuner_ops->set_state(fe, DVBFE_TUNER_OPEN, &t_state)) < 0) { if ((err =
tuner_ops->set_state(fe, DVBFE_TUNER_OPEN,
&t_state)) < 0) {
printk("%s: Invalid parameter\n", __func__); printk("%s: Invalid parameter\n", __func__);
return err; return err;
} }
...@@ -80,7 +87,9 @@ static unsigned int tuner_MT2063_SoftwareShutdown(struct dvb_frontend *fe) ...@@ -80,7 +87,9 @@ static unsigned int tuner_MT2063_SoftwareShutdown(struct dvb_frontend *fe)
if (&frontend_ops->tuner_ops) if (&frontend_ops->tuner_ops)
tuner_ops = &frontend_ops->tuner_ops; tuner_ops = &frontend_ops->tuner_ops;
if (tuner_ops->set_state) { if (tuner_ops->set_state) {
if ((err = tuner_ops->set_state(fe, DVBFE_TUNER_SOFTWARE_SHUTDOWN, &t_state)) < 0) { if ((err =
tuner_ops->set_state(fe, DVBFE_TUNER_SOFTWARE_SHUTDOWN,
&t_state)) < 0) {
printk("%s: Invalid parameter\n", __func__); printk("%s: Invalid parameter\n", __func__);
return err; return err;
} }
...@@ -101,7 +110,9 @@ static unsigned int tuner_MT2063_ClearPowerMaskBits(struct dvb_frontend *fe) ...@@ -101,7 +110,9 @@ static unsigned int tuner_MT2063_ClearPowerMaskBits(struct dvb_frontend *fe)
if (&frontend_ops->tuner_ops) if (&frontend_ops->tuner_ops)
tuner_ops = &frontend_ops->tuner_ops; tuner_ops = &frontend_ops->tuner_ops;
if (tuner_ops->set_state) { if (tuner_ops->set_state) {
if ((err = tuner_ops->set_state(fe, DVBFE_TUNER_CLEAR_POWER_MASKBITS, &t_state)) < 0) { if ((err =
tuner_ops->set_state(fe, DVBFE_TUNER_CLEAR_POWER_MASKBITS,
&t_state)) < 0) {
printk("%s: Invalid parameter\n", __func__); printk("%s: Invalid parameter\n", __func__);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment