Skip to content

Commit

Permalink
msm: camera: Torch Led lm3642 is not released properly.
Browse files Browse the repository at this point in the history
For MSM_CAMERA_I2C_DEVICE type devices added i2c release functions
and updated proper register to release function.

Change-Id: I6e92649252e703b9f2168de9ea9a5a8579b30223
Signed-off-by: satya kottisa <fvgm76@motorola.com>
Reviewed-on: http://gerrit.mot.com/643646
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Christopher Fries <cfries@motorola.com>
Reviewed-by: Elena Satraitis <w04888@motorola.com>
Reviewed-by: Nagappan Rathinam <dgxp63@motorola.com>
SLTApproved: Kiran Kumar Krishna <kiran@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
  • Loading branch information
satya kottisa committed Jun 10, 2014
1 parent 98c965c commit 2d1b3d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/msm/camera_v2/sensor/flash/lm3642.c
Expand Up @@ -33,7 +33,7 @@ static struct msm_camera_i2c_reg_array lm3642_off_array[] = {
};

static struct msm_camera_i2c_reg_array lm3642_release_array[] = {
{0x0f, 0x00},
{0x0A, 0x00},
};

static struct msm_camera_i2c_reg_array lm3642_low_array[] = {
Expand Down
Expand Up @@ -165,6 +165,14 @@ int msm_flash_led_release(struct msm_led_flash_ctrl_t *fctrl)
if (fctrl->flash_device_type == MSM_CAMERA_PLATFORM_DEVICE) {
fctrl->flash_i2c_client->i2c_func_tbl->i2c_util(
fctrl->flash_i2c_client, MSM_CCI_RELEASE);
} else if (fctrl->flash_device_type == MSM_CAMERA_I2C_DEVICE) {
if (fctrl->flash_i2c_client && fctrl->reg_setting) {
rc = fctrl->flash_i2c_client->i2c_func_tbl->
i2c_write_table(fctrl->flash_i2c_client,
fctrl->reg_setting->release_setting);
if (rc < 0)
pr_err("%s:%d failed\n", __func__, __LINE__);
}
}
rc = msm_camera_request_gpio_table(
flashdata->gpio_conf->cam_gpio_req_tbl,
Expand Down

0 comments on commit 2d1b3d2

Please sign in to comment.