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

Commit 0ddae316 authored by likelong's avatar likelong Committed by hecaiqiang
Browse files

Optimize the OIS driver

Change-Id: I9132006e98ac948592aa0c339f29b5d3758f90c7
parent 221016fb
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -1175,10 +1175,14 @@ static int cam_ois_power_down(struct cam_ois_ctrl_t *o_ctrl)

	CAM_INFO(CAM_OIS, "cam_io_release");

	if (MASTER_1 == o_ctrl->io_master_info.cci_client->cci_i2c_master) {
		imx586_ois_initialized = false;
	s5k3m5_ois_initialized = false;
		imx586_ois_ready = false;
	} else if (MASTER_0 == o_ctrl->io_master_info.cci_client->cci_i2c_master) {
		s5k3m5_ois_initialized = false;
		s5k3m5_ois_ready = false;
	}

	return rc;
}