Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357550
b: refs/heads/master
c: 4880f56
h: refs/heads/master
v: v3
  • Loading branch information
Cong Ding authored and Mauro Carvalho Chehab committed Feb 8, 2013
1 parent 8166dee commit 1483ad2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a92591a7112042f92b609be42bc332d989776e9b
refs/heads/master: 4880f56438ef56457edd5548b257382761591998
14 changes: 4 additions & 10 deletions trunk/drivers/media/dvb-frontends/stv0900_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,11 +524,8 @@ void stv0900_set_tuner(struct dvb_frontend *fe, u32 frequency,
struct dvb_frontend_ops *frontend_ops = NULL;
struct dvb_tuner_ops *tuner_ops = NULL;

if (&fe->ops)
frontend_ops = &fe->ops;

if (&frontend_ops->tuner_ops)
tuner_ops = &frontend_ops->tuner_ops;
frontend_ops = &fe->ops;
tuner_ops = &frontend_ops->tuner_ops;

if (tuner_ops->set_frequency) {
if ((tuner_ops->set_frequency(fe, frequency)) < 0)
Expand All @@ -552,11 +549,8 @@ void stv0900_set_bandwidth(struct dvb_frontend *fe, u32 bandwidth)
struct dvb_frontend_ops *frontend_ops = NULL;
struct dvb_tuner_ops *tuner_ops = NULL;

if (&fe->ops)
frontend_ops = &fe->ops;

if (&frontend_ops->tuner_ops)
tuner_ops = &frontend_ops->tuner_ops;
frontend_ops = &fe->ops;
tuner_ops = &frontend_ops->tuner_ops;

if (tuner_ops->set_bandwidth) {
if ((tuner_ops->set_bandwidth(fe, bandwidth)) < 0)
Expand Down
7 changes: 2 additions & 5 deletions trunk/drivers/media/dvb-frontends/stv0900_sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1167,11 +1167,8 @@ static u32 stv0900_get_tuner_freq(struct dvb_frontend *fe)
struct dvb_tuner_ops *tuner_ops = NULL;
u32 freq = 0;

if (&fe->ops)
frontend_ops = &fe->ops;

if (&frontend_ops->tuner_ops)
tuner_ops = &frontend_ops->tuner_ops;
frontend_ops = &fe->ops;
tuner_ops = &frontend_ops->tuner_ops;

if (tuner_ops->get_frequency) {
if ((tuner_ops->get_frequency(fe, &freq)) < 0)
Expand Down

0 comments on commit 1483ad2

Please sign in to comment.