aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/bt8xx/dst.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/bt8xx/dst.c')
-rw-r--r--drivers/media/dvb/bt8xx/dst.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/media/dvb/bt8xx/dst.c b/drivers/media/dvb/bt8xx/dst.c
index 2efc6f1caf84..e5e8c3e869c5 100644
--- a/drivers/media/dvb/bt8xx/dst.c
+++ b/drivers/media/dvb/bt8xx/dst.c
@@ -978,7 +978,7 @@ static int dst_set_voltage(struct dvb_frontend* fe, fe_sec_voltage_t voltage);
978 978
979static int dst_write_tuna(struct dvb_frontend* fe) 979static int dst_write_tuna(struct dvb_frontend* fe)
980{ 980{
981 struct dst_state* state = (struct dst_state*) fe->demodulator_priv; 981 struct dst_state* state = fe->demodulator_priv;
982 int retval; 982 int retval;
983 u8 reply; 983 u8 reply;
984 984
@@ -1046,7 +1046,7 @@ static int dst_write_tuna(struct dvb_frontend* fe)
1046 1046
1047static int dst_set_diseqc(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd* cmd) 1047static int dst_set_diseqc(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd* cmd)
1048{ 1048{
1049 struct dst_state* state = (struct dst_state*) fe->demodulator_priv; 1049 struct dst_state* state = fe->demodulator_priv;
1050 u8 paket[8] = { 0x00, 0x08, 0x04, 0xe0, 0x10, 0x38, 0xf0, 0xec }; 1050 u8 paket[8] = { 0x00, 0x08, 0x04, 0xe0, 0x10, 0x38, 0xf0, 0xec };
1051 1051
1052 if (state->dst_type == DST_TYPE_IS_TERR) 1052 if (state->dst_type == DST_TYPE_IS_TERR)
@@ -1064,7 +1064,7 @@ static int dst_set_voltage(struct dvb_frontend* fe, fe_sec_voltage_t voltage)
1064{ 1064{
1065 u8 *val; 1065 u8 *val;
1066 int need_cmd; 1066 int need_cmd;
1067 struct dst_state* state = (struct dst_state*) fe->demodulator_priv; 1067 struct dst_state* state = fe->demodulator_priv;
1068 1068
1069 state->voltage = voltage; 1069 state->voltage = voltage;
1070 1070
@@ -1105,7 +1105,7 @@ static int dst_set_voltage(struct dvb_frontend* fe, fe_sec_voltage_t voltage)
1105static int dst_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone) 1105static int dst_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
1106{ 1106{
1107 u8 *val; 1107 u8 *val;
1108 struct dst_state* state = (struct dst_state*) fe->demodulator_priv; 1108 struct dst_state* state = fe->demodulator_priv;
1109 1109
1110 state->tone = tone; 1110 state->tone = tone;
1111 1111
@@ -1157,7 +1157,7 @@ static int dst_send_burst(struct dvb_frontend *fe, fe_sec_mini_cmd_t minicmd)
1157 1157
1158static int dst_init(struct dvb_frontend* fe) 1158static int dst_init(struct dvb_frontend* fe)
1159{ 1159{
1160 struct dst_state* state = (struct dst_state*) fe->demodulator_priv; 1160 struct dst_state* state = fe->demodulator_priv;
1161 static u8 ini_satci_tuna[] = { 9, 0, 3, 0xb6, 1, 0, 0x73, 0x21, 0, 0 }; 1161 static u8 ini_satci_tuna[] = { 9, 0, 3, 0xb6, 1, 0, 0x73, 0x21, 0, 0 };
1162 static u8 ini_satfta_tuna[] = { 0, 0, 3, 0xb6, 1, 0x55, 0xbd, 0x50, 0, 0 }; 1162 static u8 ini_satfta_tuna[] = { 0, 0, 3, 0xb6, 1, 0x55, 0xbd, 0x50, 0, 0 };
1163 static u8 ini_tvfta_tuna[] = { 0, 0, 3, 0xb6, 1, 7, 0x0, 0x0, 0, 0 }; 1163 static u8 ini_tvfta_tuna[] = { 0, 0, 3, 0xb6, 1, 7, 0x0, 0x0, 0, 0 };
@@ -1189,7 +1189,7 @@ static int dst_init(struct dvb_frontend* fe)
1189 1189
1190static int dst_read_status(struct dvb_frontend* fe, fe_status_t* status) 1190static int dst_read_status(struct dvb_frontend* fe, fe_status_t* status)
1191{ 1191{
1192 struct dst_state* state = (struct dst_state*) fe->demodulator_priv; 1192 struct dst_state* state = fe->demodulator_priv;
1193 1193
1194 *status = 0; 1194 *status = 0;
1195 if (state->diseq_flags & HAS_LOCK) { 1195 if (state->diseq_flags & HAS_LOCK) {
@@ -1203,7 +1203,7 @@ static int dst_read_status(struct dvb_frontend* fe, fe_status_t* status)
1203 1203
1204static int dst_read_signal_strength(struct dvb_frontend* fe, u16* strength) 1204static int dst_read_signal_strength(struct dvb_frontend* fe, u16* strength)
1205{ 1205{
1206 struct dst_state* state = (struct dst_state*) fe->demodulator_priv; 1206 struct dst_state* state = fe->demodulator_priv;
1207 1207
1208 dst_get_signal(state); 1208 dst_get_signal(state);
1209 *strength = state->decode_strength; 1209 *strength = state->decode_strength;
@@ -1213,7 +1213,7 @@ static int dst_read_signal_strength(struct dvb_frontend* fe, u16* strength)
1213 1213
1214static int dst_read_snr(struct dvb_frontend* fe, u16* snr) 1214static int dst_read_snr(struct dvb_frontend* fe, u16* snr)
1215{ 1215{
1216 struct dst_state* state = (struct dst_state*) fe->demodulator_priv; 1216 struct dst_state* state = fe->demodulator_priv;
1217 1217
1218 dst_get_signal(state); 1218 dst_get_signal(state);
1219 *snr = state->decode_snr; 1219 *snr = state->decode_snr;
@@ -1223,7 +1223,7 @@ static int dst_read_snr(struct dvb_frontend* fe, u16* snr)
1223 1223
1224static int dst_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_parameters *p) 1224static int dst_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_parameters *p)
1225{ 1225{
1226 struct dst_state* state = (struct dst_state*) fe->demodulator_priv; 1226 struct dst_state* state = fe->demodulator_priv;
1227 1227
1228 dst_set_freq(state, p->frequency); 1228 dst_set_freq(state, p->frequency);
1229 if (verbose > 4) 1229 if (verbose > 4)
@@ -1249,7 +1249,7 @@ static int dst_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_paramet
1249 1249
1250static int dst_get_frontend(struct dvb_frontend* fe, struct dvb_frontend_parameters *p) 1250static int dst_get_frontend(struct dvb_frontend* fe, struct dvb_frontend_parameters *p)
1251{ 1251{
1252 struct dst_state* state = (struct dst_state*) fe->demodulator_priv; 1252 struct dst_state* state = fe->demodulator_priv;
1253 1253
1254 p->frequency = state->decode_freq; 1254 p->frequency = state->decode_freq;
1255 p->inversion = state->inversion; 1255 p->inversion = state->inversion;
@@ -1269,7 +1269,7 @@ static int dst_get_frontend(struct dvb_frontend* fe, struct dvb_frontend_paramet
1269 1269
1270static void dst_release(struct dvb_frontend* fe) 1270static void dst_release(struct dvb_frontend* fe)
1271{ 1271{
1272 struct dst_state* state = (struct dst_state*) fe->demodulator_priv; 1272 struct dst_state* state = fe->demodulator_priv;
1273 kfree(state); 1273 kfree(state);
1274} 1274}
1275 1275