summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/stb6100.c
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2008-02-04 02:37:02 +0400
committerManu Abraham <manu@linuxtv.org>2008-02-04 02:37:02 +0400
commita52af51ed4b377cab3886bb48864a036a2b0081c (patch)
tree3d7694278c9d702253f0018beced2fa614251764 /linux/drivers/media/dvb/frontends/stb6100.c
parentaff258c53f552369f3eed1508f809a808e368f1e (diff)
downloadmediapointer-dvb-s2-a52af51ed4b377cab3886bb48864a036a2b0081c.tar.gz
mediapointer-dvb-s2-a52af51ed4b377cab3886bb48864a036a2b0081c.tar.bz2
Optimization, Fix a Bug
* cut down some I/O operations by disabling "disable gate" * budget_av was left with the gate open, thereby more susceptible to RF interference due to I/O operations From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/stb6100.c')
-rw-r--r--linux/drivers/media/dvb/frontends/stb6100.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/linux/drivers/media/dvb/frontends/stb6100.c b/linux/drivers/media/dvb/frontends/stb6100.c
index 84c2116f0..0f649a4ea 100644
--- a/linux/drivers/media/dvb/frontends/stb6100.c
+++ b/linux/drivers/media/dvb/frontends/stb6100.c
@@ -134,16 +134,7 @@ static int stb6100_read_regs(struct stb6100_state *state, u8 regs[])
.len = STB6100_NUMREGS
};
- if (state->frontend->ops.i2c_gate_ctrl)
- if ((rc = state->frontend->ops.i2c_gate_ctrl(state->frontend, 1)) < 0)
- return rc;
-
rc = i2c_transfer(state->i2c, &msg, 1);
- if (state->frontend->ops.i2c_gate_ctrl) {
- int rc2;
- if ((rc2 = state->frontend->ops.i2c_gate_ctrl(state->frontend, 0)) < 0)
- return rc2;
- }
if (unlikely(rc != 1)) {
dprintk(verbose, FE_ERROR, 1, "Read (0x%x) err, rc=[%d]",
state->config->tuner_address, rc);
@@ -200,15 +191,7 @@ static int stb6100_write_reg_range(struct stb6100_state *state, u8 buf[], int st
for (i = 0; i < len; i++)
dprintk(verbose, FE_DEBUG, 1, " %s: 0x%02x", stb6100_regnames[start + i], buf[i]);
}
- if (state->frontend->ops.i2c_gate_ctrl)
- if ((rc = state->frontend->ops.i2c_gate_ctrl(state->frontend, 1)) < 0)
- return rc;
rc = i2c_transfer(state->i2c, &msg, 1);
- if (state->frontend->ops.i2c_gate_ctrl) {
- int rc2;
- if ((rc2 = state->frontend->ops.i2c_gate_ctrl(state->frontend, 0)) < 0)
- return rc2;
- }
if (unlikely(rc != 1)) {
dprintk(verbose, FE_ERROR, 1, "(0x%x) write err [%d:%d], rc=[%d]",
(unsigned int)state->config->tuner_address, start, len, rc);