summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/b2c2/flexcop-fe-tuner.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/b2c2/flexcop-fe-tuner.c')
-rw-r--r--linux/drivers/media/dvb/b2c2/flexcop-fe-tuner.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/linux/drivers/media/dvb/b2c2/flexcop-fe-tuner.c b/linux/drivers/media/dvb/b2c2/flexcop-fe-tuner.c
index 9fc2d1764..124b25182 100644
--- a/linux/drivers/media/dvb/b2c2/flexcop-fe-tuner.c
+++ b/linux/drivers/media/dvb/b2c2/flexcop-fe-tuner.c
@@ -2,7 +2,7 @@
* This file is part of linux driver the digital TV devices equipped with B2C2 FlexcopII(b)/III
*
* flexcop-fe-tuner.c - methods for attaching a frontend and controlling DiSEqC.
- *
+ *
* see flexcop.c for copyright information.
*/
#include "flexcop.h"
@@ -20,7 +20,7 @@ static int flexcop_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage
struct flexcop_device *fc = fe->dvb->priv;
flexcop_ibi_value v;
deb_tuner("polarity/voltage = %u\n", voltage);
-
+
v = fc->read_ibi_reg(fc, misc_204);
switch (voltage) {
case SEC_VOLTAGE_OFF:
@@ -48,7 +48,7 @@ static int flexcop_sleep(struct dvb_frontend* fe)
if (fc->fe_sleep)
return fc->fe_sleep(fe);
-
+
/* v.misc_204.ACPI3_sig = 1;
fc->write_ibi_reg(fc,misc_204,v);*/
@@ -66,9 +66,9 @@ static int flexcop_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone)
deb_tuner("tone = %u\n",tone);
switch (tone) {
- case SEC_TONE_ON:
+ case SEC_TONE_ON:
ax = 0x01ff;
- break;
+ break;
case SEC_TONE_OFF:
ax = 0;
break;
@@ -76,14 +76,14 @@ static int flexcop_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone)
err("unknown SEC_TONE value");
return -EINVAL;
}
-
+
v.lnb_switch_freq_200.LNB_CTLPrescaler_sig = 1; /* divide by 2 */
- v.lnb_switch_freq_200.LNB_CTLHighCount_sig =
+ v.lnb_switch_freq_200.LNB_CTLHighCount_sig =
v.lnb_switch_freq_200.LNB_CTLLowCount_sig = ax;
-
+
return fc->write_ibi_reg(fc,lnb_switch_freq_200,v);
-}
+}
static void flexcop_diseqc_send_bit(struct dvb_frontend* fe, int data)
{
@@ -345,10 +345,10 @@ int flexcop_frontend_init(struct flexcop_device *fc)
fc->fe_sleep = fc->fe->ops->sleep;
fc->fe->ops->sleep = flexcop_sleep;
-
+
fc->dev_type = FC_SKY;
info("found the stv0299 at i2c address: 0x%02x",samsung_tbmu24112_config.demod_address);
- } else
+ } else
/* try the air dvb-t (mt352/Samsung tdtc9251dh0(??)) */
if ((fc->fe = mt352_attach(&samsung_tdtc9251dh0_config, &fc->i2c_adap)) != NULL ) {
fc->dev_type = FC_AIR_DVB;
@@ -370,7 +370,7 @@ int flexcop_frontend_init(struct flexcop_device *fc)
fc->fe->ops->diseqc_send_burst = flexcop_diseqc_send_burst;
fc->fe->ops->set_tone = flexcop_set_tone;
fc->fe->ops->set_voltage = flexcop_set_voltage;
-
+
fc->fe_sleep = fc->fe->ops->sleep;
fc->fe->ops->sleep = flexcop_sleep;
@@ -390,7 +390,7 @@ int flexcop_frontend_init(struct flexcop_device *fc)
return -EINVAL;
}
}
- fc->init_state |= FC_STATE_FE_INIT;
+ fc->init_state |= FC_STATE_FE_INIT;
return 0;
}