aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@m1k.net>2006-01-09 12:25:13 -0500
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 12:25:13 -0500
commitbcb17c421e8fa20d31a0b4a60686908b6d469ce7 (patch)
tree1d405e8fc9393e44055e1f825ed175cc83b314c0 /drivers
parent611900c1858747a87657eb405ebab5b1e72bb57c (diff)
V4L/DVB (3090): Cleanup check for dvb.
- Cleanup check for dvb. Signed-off-by: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/cx88/cx88-i2c.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/media/video/cx88/cx88-i2c.c b/drivers/media/video/cx88/cx88-i2c.c
index 7363dd6e66e2..c6492089ee1a 100644
--- a/drivers/media/video/cx88/cx88-i2c.c
+++ b/drivers/media/video/cx88/cx88-i2c.c
@@ -136,10 +136,7 @@ void cx88_call_i2c_clients(struct cx88_core *core, unsigned int cmd, void *arg)
136 if (0 != core->i2c_rc) 136 if (0 != core->i2c_rc)
137 return; 137 return;
138 138
139 if (core->dvbdev == NULL) { 139 if (core->dvbdev) {
140 i2c_clients_command(&core->i2c_adap, cmd, arg);
141 } else {
142
143 if (core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl) 140 if (core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl)
144 core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl(core->dvbdev->dvb.frontend, 1); 141 core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl(core->dvbdev->dvb.frontend, 1);
145 142
@@ -147,8 +144,8 @@ void cx88_call_i2c_clients(struct cx88_core *core, unsigned int cmd, void *arg)
147 144
148 if (core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl) 145 if (core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl)
149 core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl(core->dvbdev->dvb.frontend, 0); 146 core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl(core->dvbdev->dvb.frontend, 0);
150 } 147 } else
151 148 i2c_clients_command(&core->i2c_adap, cmd, arg);
152} 149}
153 150
154static struct i2c_algo_bit_data cx8800_i2c_algo_template = { 151static struct i2c_algo_bit_data cx8800_i2c_algo_template = {