diff options
author | Steve Kerrison <steve@stevekerrison.com> | 2011-05-02 17:19:13 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 08:30:13 -0400 |
commit | 9ac51c5e53d6b16c9a3fa541117cf96dedd6b3dd (patch) | |
tree | 311d5723f2ca26e2df4f99ed940083a44a08f086 /drivers/media/dvb/frontends/cxd2820r_t2.c | |
parent | d6a5f921fb8cbd418b298e5bbe83e5c8c8e1da16 (diff) |
[media] cxd2820r: make C, T, T2 and core components as linked objects
Signed-off-by: Steve Kerrison <steve@stevekerrison.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/cxd2820r_t2.c')
-rw-r--r-- | drivers/media/dvb/frontends/cxd2820r_t2.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/drivers/media/dvb/frontends/cxd2820r_t2.c b/drivers/media/dvb/frontends/cxd2820r_t2.c index 6ec94ea77f15..c47b35c8acf1 100644 --- a/drivers/media/dvb/frontends/cxd2820r_t2.c +++ b/drivers/media/dvb/frontends/cxd2820r_t2.c | |||
@@ -19,7 +19,9 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | 21 | ||
22 | static int cxd2820r_set_frontend_t2(struct dvb_frontend *fe, | 22 | #include "cxd2820r_priv.h" |
23 | |||
24 | int cxd2820r_set_frontend_t2(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; |
@@ -148,7 +150,7 @@ error: | |||
148 | 150 | ||
149 | } | 151 | } |
150 | 152 | ||
151 | static int cxd2820r_get_frontend_t2(struct dvb_frontend *fe, | 153 | int cxd2820r_get_frontend_t2(struct dvb_frontend *fe, |
152 | struct dvb_frontend_parameters *p) | 154 | struct dvb_frontend_parameters *p) |
153 | { | 155 | { |
154 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 156 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
@@ -264,7 +266,7 @@ error: | |||
264 | return ret; | 266 | return ret; |
265 | } | 267 | } |
266 | 268 | ||
267 | static int cxd2820r_read_status_t2(struct dvb_frontend *fe, fe_status_t *status) | 269 | int cxd2820r_read_status_t2(struct dvb_frontend *fe, fe_status_t *status) |
268 | { | 270 | { |
269 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 271 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
270 | int ret; | 272 | int ret; |
@@ -293,7 +295,7 @@ error: | |||
293 | return ret; | 295 | return ret; |
294 | } | 296 | } |
295 | 297 | ||
296 | static int cxd2820r_read_ber_t2(struct dvb_frontend *fe, u32 *ber) | 298 | int cxd2820r_read_ber_t2(struct dvb_frontend *fe, u32 *ber) |
297 | { | 299 | { |
298 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 300 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
299 | int ret; | 301 | int ret; |
@@ -320,7 +322,7 @@ error: | |||
320 | return ret; | 322 | return ret; |
321 | } | 323 | } |
322 | 324 | ||
323 | static int cxd2820r_read_signal_strength_t2(struct dvb_frontend *fe, | 325 | int cxd2820r_read_signal_strength_t2(struct dvb_frontend *fe, |
324 | u16 *strength) | 326 | u16 *strength) |
325 | { | 327 | { |
326 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 328 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
@@ -344,7 +346,7 @@ error: | |||
344 | return ret; | 346 | return ret; |
345 | } | 347 | } |
346 | 348 | ||
347 | static int cxd2820r_read_snr_t2(struct dvb_frontend *fe, u16 *snr) | 349 | int cxd2820r_read_snr_t2(struct dvb_frontend *fe, u16 *snr) |
348 | { | 350 | { |
349 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 351 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
350 | int ret; | 352 | int ret; |
@@ -372,14 +374,14 @@ error: | |||
372 | return ret; | 374 | return ret; |
373 | } | 375 | } |
374 | 376 | ||
375 | static int cxd2820r_read_ucblocks_t2(struct dvb_frontend *fe, u32 *ucblocks) | 377 | int cxd2820r_read_ucblocks_t2(struct dvb_frontend *fe, u32 *ucblocks) |
376 | { | 378 | { |
377 | *ucblocks = 0; | 379 | *ucblocks = 0; |
378 | /* no way to read ? */ | 380 | /* no way to read ? */ |
379 | return 0; | 381 | return 0; |
380 | } | 382 | } |
381 | 383 | ||
382 | static int cxd2820r_sleep_t2(struct dvb_frontend *fe) | 384 | int cxd2820r_sleep_t2(struct dvb_frontend *fe) |
383 | { | 385 | { |
384 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 386 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
385 | int ret, i; | 387 | int ret, i; |
@@ -409,7 +411,7 @@ error: | |||
409 | return ret; | 411 | return ret; |
410 | } | 412 | } |
411 | 413 | ||
412 | static int cxd2820r_get_tune_settings_t2(struct dvb_frontend *fe, | 414 | int cxd2820r_get_tune_settings_t2(struct dvb_frontend *fe, |
413 | struct dvb_frontend_tune_settings *s) | 415 | struct dvb_frontend_tune_settings *s) |
414 | { | 416 | { |
415 | s->min_delay_ms = 1500; | 417 | s->min_delay_ms = 1500; |