Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55ca3fcf authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: sensor: Initialize actuator state"

parents 9dabb5ad 80b01d0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1120,12 +1120,12 @@ static int32_t msm_actuator_i2c_probe(struct i2c_client *client,
	act_ctrl_t->curr_step_pos = 0,
	act_ctrl_t->valid_position = 0;
	act_ctrl_t->curr_region_index = 0,
	act_ctrl_t->actuator_state = ACTUATOR_POWER_DOWN;
	/* Set device type as I2C */
	act_ctrl_t->act_device_type = MSM_CAMERA_I2C_DEVICE;
	act_ctrl_t->i2c_client.i2c_func_tbl = &msm_sensor_qup_func_tbl;
	act_ctrl_t->act_v4l2_subdev_ops = &msm_actuator_subdev_ops;
	act_ctrl_t->actuator_mutex = &msm_actuator_mutex;

	act_ctrl_t->cam_name = act_ctrl_t->subdev_id;
	CDBG("act_ctrl_t->cam_name: %d", act_ctrl_t->cam_name);
	/* Assign name for sub device */