Merge "msm: camera: sensor: Fix a bug in CCI with I2C write"
This commit is contained in:
commit
95cc997128
1 changed files with 4 additions and 0 deletions
|
@ -403,6 +403,10 @@ static int32_t msm_cci_calc_cmd_len(struct cci_device *cci_dev,
|
|||
if (cmd->reg_addr + 1 ==
|
||||
(cmd+1)->reg_addr) {
|
||||
len += data_len;
|
||||
if (len > cci_dev->payload_size) {
|
||||
len = len - data_len;
|
||||
break;
|
||||
}
|
||||
*pack += data_len;
|
||||
} else
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue