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 diff is collapsed.
This diff is collapsed.
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);
struct dvb_frontend_ops *frontend_ops = NULL; struct dvb_frontend_ops *frontend_ops = NULL;
struct dvb_tuner_ops *tuner_ops = NULL; struct dvb_tuner_ops *tuner_ops = NULL;
struct tuner_state t_state; struct tuner_state t_state;
struct mt2063_state *mt2063State = fe->tuner_priv; struct mt2063_state *mt2063State = fe->tuner_priv;
int err = 0; int err = 0;
t_state.frequency = f_in; t_state.frequency = f_in;
t_state.bandwidth = bw_in; t_state.bandwidth = bw_in;
mt2063State->tv_type = tv_type; mt2063State->tv_type = tv_type;
if (&fe->ops) if (&fe->ops)
frontend_ops = &fe->ops; frontend_ops = &fe->ops;
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;
} }
} }
return err; return err;
} }
static unsigned int mt2063_lockStatus(struct dvb_frontend *fe) static unsigned int mt2063_lockStatus(struct dvb_frontend *fe)
{ {
struct dvb_frontend_ops *frontend_ops = &fe->ops; struct dvb_frontend_ops *frontend_ops = &fe->ops;
struct dvb_tuner_ops *tuner_ops = &frontend_ops->tuner_ops; struct dvb_tuner_ops *tuner_ops = &frontend_ops->tuner_ops;
struct tuner_state t_state; struct tuner_state t_state;
int err = 0; int err = 0;
if (&fe->ops) if (&fe->ops)
...@@ -39,73 +42,81 @@ static unsigned int mt2063_lockStatus(struct dvb_frontend *fe) ...@@ -39,73 +42,81 @@ 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;
} }
} }
return err; return err;
} }
static unsigned int tuner_MT2063_Open(struct dvb_frontend *fe) static unsigned int tuner_MT2063_Open(struct dvb_frontend *fe)
{ {
struct dvb_frontend_ops *frontend_ops = &fe->ops; struct dvb_frontend_ops *frontend_ops = &fe->ops;
struct dvb_tuner_ops *tuner_ops = &frontend_ops->tuner_ops; struct dvb_tuner_ops *tuner_ops = &frontend_ops->tuner_ops;
struct tuner_state t_state; struct tuner_state t_state;
int err = 0; int err = 0;
if (&fe->ops) if (&fe->ops)
frontend_ops = &fe->ops; frontend_ops = &fe->ops;
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;
} }
} }
return err; return err;
} }
static unsigned int tuner_MT2063_SoftwareShutdown(struct dvb_frontend *fe) static unsigned int tuner_MT2063_SoftwareShutdown(struct dvb_frontend *fe)
{ {
struct dvb_frontend_ops *frontend_ops = &fe->ops; struct dvb_frontend_ops *frontend_ops = &fe->ops;
struct dvb_tuner_ops *tuner_ops = &frontend_ops->tuner_ops; struct dvb_tuner_ops *tuner_ops = &frontend_ops->tuner_ops;
struct tuner_state t_state; struct tuner_state t_state;
int err = 0; int err = 0;
if (&fe->ops) if (&fe->ops)
frontend_ops = &fe->ops; frontend_ops = &fe->ops;
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;
} }
} }
return err; return err;
} }
static unsigned int tuner_MT2063_ClearPowerMaskBits(struct dvb_frontend *fe) static unsigned int tuner_MT2063_ClearPowerMaskBits(struct dvb_frontend *fe)
{ {
struct dvb_frontend_ops *frontend_ops = &fe->ops; struct dvb_frontend_ops *frontend_ops = &fe->ops;
struct dvb_tuner_ops *tuner_ops = &frontend_ops->tuner_ops; struct dvb_tuner_ops *tuner_ops = &frontend_ops->tuner_ops;
struct tuner_state t_state; struct tuner_state t_state;
int err = 0; int err = 0;
if (&fe->ops) if (&fe->ops)
frontend_ops = &fe->ops; frontend_ops = &fe->ops;
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;
} }
} }
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