aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/cxd2820r_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/cxd2820r_c.c')
-rw-r--r--drivers/media/dvb/frontends/cxd2820r_c.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/media/dvb/frontends/cxd2820r_c.c b/drivers/media/dvb/frontends/cxd2820r_c.c
index a94bff944722..3c07d400731d 100644
--- a/drivers/media/dvb/frontends/cxd2820r_c.c
+++ b/drivers/media/dvb/frontends/cxd2820r_c.c
@@ -19,7 +19,9 @@
19 */ 19 */
20 20
21 21
22static int cxd2820r_set_frontend_c(struct dvb_frontend *fe, 22#include "cxd2820r_priv.h"
23
24int cxd2820r_set_frontend_c(struct dvb_frontend *fe,
23 struct dvb_frontend_parameters *params) 25 struct dvb_frontend_parameters *params)
24{ 26{
25 struct cxd2820r_priv *priv = fe->demodulator_priv; 27 struct cxd2820r_priv *priv = fe->demodulator_priv;
@@ -92,7 +94,7 @@ error:
92 return ret; 94 return ret;
93} 95}
94 96
95static int cxd2820r_get_frontend_c(struct dvb_frontend *fe, 97int cxd2820r_get_frontend_c(struct dvb_frontend *fe,
96 struct dvb_frontend_parameters *p) 98 struct dvb_frontend_parameters *p)
97{ 99{
98 struct cxd2820r_priv *priv = fe->demodulator_priv; 100 struct cxd2820r_priv *priv = fe->demodulator_priv;
@@ -143,7 +145,7 @@ error:
143 return ret; 145 return ret;
144} 146}
145 147
146static int cxd2820r_read_ber_c(struct dvb_frontend *fe, u32 *ber) 148int cxd2820r_read_ber_c(struct dvb_frontend *fe, u32 *ber)
147{ 149{
148 struct cxd2820r_priv *priv = fe->demodulator_priv; 150 struct cxd2820r_priv *priv = fe->demodulator_priv;
149 int ret; 151 int ret;
@@ -177,7 +179,7 @@ error:
177 return ret; 179 return ret;
178} 180}
179 181
180static int cxd2820r_read_signal_strength_c(struct dvb_frontend *fe, 182int cxd2820r_read_signal_strength_c(struct dvb_frontend *fe,
181 u16 *strength) 183 u16 *strength)
182{ 184{
183 struct cxd2820r_priv *priv = fe->demodulator_priv; 185 struct cxd2820r_priv *priv = fe->demodulator_priv;
@@ -207,7 +209,7 @@ error:
207 return ret; 209 return ret;
208} 210}
209 211
210static int cxd2820r_read_snr_c(struct dvb_frontend *fe, u16 *snr) 212int cxd2820r_read_snr_c(struct dvb_frontend *fe, u16 *snr)
211{ 213{
212 struct cxd2820r_priv *priv = fe->demodulator_priv; 214 struct cxd2820r_priv *priv = fe->demodulator_priv;
213 int ret; 215 int ret;
@@ -244,14 +246,14 @@ error:
244 return ret; 246 return ret;
245} 247}
246 248
247static int cxd2820r_read_ucblocks_c(struct dvb_frontend *fe, u32 *ucblocks) 249int cxd2820r_read_ucblocks_c(struct dvb_frontend *fe, u32 *ucblocks)
248{ 250{
249 *ucblocks = 0; 251 *ucblocks = 0;
250 /* no way to read ? */ 252 /* no way to read ? */
251 return 0; 253 return 0;
252} 254}
253 255
254static int cxd2820r_read_status_c(struct dvb_frontend *fe, fe_status_t *status) 256int cxd2820r_read_status_c(struct dvb_frontend *fe, fe_status_t *status)
255{ 257{
256 struct cxd2820r_priv *priv = fe->demodulator_priv; 258 struct cxd2820r_priv *priv = fe->demodulator_priv;
257 int ret; 259 int ret;
@@ -280,7 +282,7 @@ error:
280 return ret; 282 return ret;
281} 283}
282 284
283static int cxd2820r_init_c(struct dvb_frontend *fe) 285int cxd2820r_init_c(struct dvb_frontend *fe)
284{ 286{
285 struct cxd2820r_priv *priv = fe->demodulator_priv; 287 struct cxd2820r_priv *priv = fe->demodulator_priv;
286 int ret; 288 int ret;
@@ -295,7 +297,7 @@ error:
295 return ret; 297 return ret;
296} 298}
297 299
298static int cxd2820r_sleep_c(struct dvb_frontend *fe) 300int cxd2820r_sleep_c(struct dvb_frontend *fe)
299{ 301{
300 struct cxd2820r_priv *priv = fe->demodulator_priv; 302 struct cxd2820r_priv *priv = fe->demodulator_priv;
301 int ret, i; 303 int ret, i;
@@ -324,7 +326,7 @@ error:
324 return ret; 326 return ret;
325} 327}
326 328
327static int cxd2820r_get_tune_settings_c(struct dvb_frontend *fe, 329int cxd2820r_get_tune_settings_c(struct dvb_frontend *fe,
328 struct dvb_frontend_tune_settings *s) 330 struct dvb_frontend_tune_settings *s)
329{ 331{
330 s->min_delay_ms = 500; 332 s->min_delay_ms = 500;