Commit ed7c847a authored by Igor M. Liplianin's avatar Igor M. Liplianin Committed by Mauro Carvalho Chehab

V4L/DVB: dm1105: connect splitted else-if statements

Signed-off-by: default avatarIgor M. Liplianin <liplianin@me.by>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 8f50a3ee
...@@ -346,8 +346,7 @@ static int dm1105_i2c_xfer(struct i2c_adapter *i2c_adap, ...@@ -346,8 +346,7 @@ static int dm1105_i2c_xfer(struct i2c_adapter *i2c_adap,
goto err; goto err;
msgs[i].buf[byte] = rc; msgs[i].buf[byte] = rc;
} }
} else { } else if ((msgs[i].buf[0] == 0xf7) && (msgs[i].addr == 0x55)) {
if ((msgs[i].buf[0] == 0xf7) && (msgs[i].addr == 0x55)) {
/* prepaired for cx24116 firmware */ /* prepaired for cx24116 firmware */
/* Write in small blocks */ /* Write in small blocks */
len = msgs[i].len - 1; len = msgs[i].len - 1;
...@@ -356,7 +355,7 @@ static int dm1105_i2c_xfer(struct i2c_adapter *i2c_adap, ...@@ -356,7 +355,7 @@ static int dm1105_i2c_xfer(struct i2c_adapter *i2c_adap,
outb(msgs[i].addr << 1, dm_io_mem(DM1105_I2CDAT)); outb(msgs[i].addr << 1, dm_io_mem(DM1105_I2CDAT));
outb(0xf7, dm_io_mem(DM1105_I2CDAT + 1)); outb(0xf7, dm_io_mem(DM1105_I2CDAT + 1));
for (byte = 0; byte < (len > 48 ? 48 : len); byte++) { for (byte = 0; byte < (len > 48 ? 48 : len); byte++) {
data = msgs[i].buf[k+byte]; data = msgs[i].buf[k + byte];
outb(data, dm_io_mem(DM1105_I2CDAT + byte + 2)); outb(data, dm_io_mem(DM1105_I2CDAT + byte + 2));
} }
outb(0x82 + (len > 48 ? 48 : len), dm_io_mem(DM1105_I2CCTR)); outb(0x82 + (len > 48 ? 48 : len), dm_io_mem(DM1105_I2CCTR));
...@@ -392,7 +391,6 @@ static int dm1105_i2c_xfer(struct i2c_adapter *i2c_adap, ...@@ -392,7 +391,6 @@ static int dm1105_i2c_xfer(struct i2c_adapter *i2c_adap,
return -1; return -1;
} }
} }
}
return num; return num;
err: err:
return rc; return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment