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_t.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_t.c')
-rw-r--r-- | drivers/media/dvb/frontends/cxd2820r_t.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/media/dvb/frontends/cxd2820r_t.c b/drivers/media/dvb/frontends/cxd2820r_t.c index 6732a9843f13..6582564c930c 100644 --- a/drivers/media/dvb/frontends/cxd2820r_t.c +++ b/drivers/media/dvb/frontends/cxd2820r_t.c | |||
@@ -19,7 +19,9 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | 21 | ||
22 | static int cxd2820r_set_frontend_t(struct dvb_frontend *fe, | 22 | #include "cxd2820r_priv.h" |
23 | |||
24 | int cxd2820r_set_frontend_t(struct dvb_frontend *fe, | ||
23 | struct dvb_frontend_parameters *p) | 25 | struct dvb_frontend_parameters *p) |
24 | { | 26 | { |
25 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 27 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
@@ -133,7 +135,7 @@ error: | |||
133 | return ret; | 135 | return ret; |
134 | } | 136 | } |
135 | 137 | ||
136 | static int cxd2820r_get_frontend_t(struct dvb_frontend *fe, | 138 | int cxd2820r_get_frontend_t(struct dvb_frontend *fe, |
137 | struct dvb_frontend_parameters *p) | 139 | struct dvb_frontend_parameters *p) |
138 | { | 140 | { |
139 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 141 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
@@ -251,7 +253,7 @@ error: | |||
251 | return ret; | 253 | return ret; |
252 | } | 254 | } |
253 | 255 | ||
254 | static int cxd2820r_read_ber_t(struct dvb_frontend *fe, u32 *ber) | 256 | int cxd2820r_read_ber_t(struct dvb_frontend *fe, u32 *ber) |
255 | { | 257 | { |
256 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 258 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
257 | int ret; | 259 | int ret; |
@@ -285,7 +287,7 @@ error: | |||
285 | return ret; | 287 | return ret; |
286 | } | 288 | } |
287 | 289 | ||
288 | static int cxd2820r_read_signal_strength_t(struct dvb_frontend *fe, | 290 | int cxd2820r_read_signal_strength_t(struct dvb_frontend *fe, |
289 | u16 *strength) | 291 | u16 *strength) |
290 | { | 292 | { |
291 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 293 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
@@ -309,7 +311,7 @@ error: | |||
309 | return ret; | 311 | return ret; |
310 | } | 312 | } |
311 | 313 | ||
312 | static int cxd2820r_read_snr_t(struct dvb_frontend *fe, u16 *snr) | 314 | int cxd2820r_read_snr_t(struct dvb_frontend *fe, u16 *snr) |
313 | { | 315 | { |
314 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 316 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
315 | int ret; | 317 | int ret; |
@@ -337,14 +339,14 @@ error: | |||
337 | return ret; | 339 | return ret; |
338 | } | 340 | } |
339 | 341 | ||
340 | static int cxd2820r_read_ucblocks_t(struct dvb_frontend *fe, u32 *ucblocks) | 342 | int cxd2820r_read_ucblocks_t(struct dvb_frontend *fe, u32 *ucblocks) |
341 | { | 343 | { |
342 | *ucblocks = 0; | 344 | *ucblocks = 0; |
343 | /* no way to read ? */ | 345 | /* no way to read ? */ |
344 | return 0; | 346 | return 0; |
345 | } | 347 | } |
346 | 348 | ||
347 | static int cxd2820r_read_status_t(struct dvb_frontend *fe, fe_status_t *status) | 349 | int cxd2820r_read_status_t(struct dvb_frontend *fe, fe_status_t *status) |
348 | { | 350 | { |
349 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 351 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
350 | int ret; | 352 | int ret; |
@@ -391,7 +393,7 @@ error: | |||
391 | return ret; | 393 | return ret; |
392 | } | 394 | } |
393 | 395 | ||
394 | static int cxd2820r_init_t(struct dvb_frontend *fe) | 396 | int cxd2820r_init_t(struct dvb_frontend *fe) |
395 | { | 397 | { |
396 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 398 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
397 | int ret; | 399 | int ret; |
@@ -406,7 +408,7 @@ error: | |||
406 | return ret; | 408 | return ret; |
407 | } | 409 | } |
408 | 410 | ||
409 | static int cxd2820r_sleep_t(struct dvb_frontend *fe) | 411 | int cxd2820r_sleep_t(struct dvb_frontend *fe) |
410 | { | 412 | { |
411 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 413 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
412 | int ret, i; | 414 | int ret, i; |
@@ -435,7 +437,7 @@ error: | |||
435 | return ret; | 437 | return ret; |
436 | } | 438 | } |
437 | 439 | ||
438 | static int cxd2820r_get_tune_settings_t(struct dvb_frontend *fe, | 440 | int cxd2820r_get_tune_settings_t(struct dvb_frontend *fe, |
439 | struct dvb_frontend_tune_settings *s) | 441 | struct dvb_frontend_tune_settings *s) |
440 | { | 442 | { |
441 | s->min_delay_ms = 500; | 443 | s->min_delay_ms = 500; |