kernel/drivers/media/common/saa7146/saa7146_i2c.c
.. .. @@ -54,10 +54,7 @@ 54 54 /* loop through all messages */ 55 55 for(i = 0; i < num; i++) { 56 56 57 - /* insert the address of the i2c-slave.58 - note: we get 7 bit i2c-addresses,59 - so we have to perform a translation */60 - addr = (m[i].addr*2) + ( (0 != (m[i].flags & I2C_M_RD)) ? 1 : 0);57 + addr = i2c_8bit_addr_from_msg(&m[i]);61 58 h1 = op_count/3; h2 = op_count%3; 62 59 op[h1] |= cpu_to_le32( (u8)addr << ((3-h2)*8)); 63 60 op[h1] |= cpu_to_le32(SAA7146_I2C_START << ((3-h2)*2));