msm: camera: sensor: Execute delay operation
Execute delay operation in actuator. Return failure if any i2c operation fails in actuator. Change-Id: I47089863595db416c678c783069a21d9c13b3044 Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>
This commit is contained in:
parent
ae0367e557
commit
a6aba90ff8
1 changed files with 5 additions and 1 deletions
|
@ -398,11 +398,15 @@ static int32_t msm_actuator_init_focus(struct msm_actuator_ctrl_t *a_ctrl,
|
||||||
pr_err("Unsupport i2c_operation: %d\n",
|
pr_err("Unsupport i2c_operation: %d\n",
|
||||||
settings[i].i2c_operation);
|
settings[i].i2c_operation);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (0 != settings[i].delay)
|
if (0 != settings[i].delay)
|
||||||
msleep(settings[i].delay);
|
msleep(settings[i].delay);
|
||||||
|
|
||||||
if (rc < 0)
|
if (rc < 0) {
|
||||||
|
pr_err("%s:%d fail addr = 0X%X, data = 0X%X, dt = %d",
|
||||||
|
__func__, __LINE__, settings[i].reg_addr,
|
||||||
|
settings[i].reg_data, settings[i].data_type);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue