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

Commit ce37e4f1 authored by Rajesh Bondugula's avatar Rajesh Bondugula Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: sensor: Add if_flash_supported param in slave info



if_flash_supported is sent from sensor library to determine the
existence of flash.

Change-Id: I4ed1f59445b09ad655e6b836a43c6135e17c0e41
Signed-off-by: default avatarRajesh Bondugula <rajeshb@codeaurora.org>
parent 11e8434e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -581,6 +581,14 @@ int32_t msm_sensor_driver_probe(void *setting)
	 */
	s_ctrl->is_probe_succeed = 1;

	/*
	 * Update the subdevice id of flash-src based on availability in kernel.
	 */
	if (slave_info->is_flash_supported == 0) {
		s_ctrl->sensordata->sensor_info->
			subdev_id[SUB_MODULE_LED_FLASH] = -1;
	}

	/*
	 * Create /dev/videoX node, comment for now until dummy /dev/videoX
	 * node is created and used by HAL
+1 −0
Original line number Diff line number Diff line
@@ -399,6 +399,7 @@ struct msm_camera_sensor_slave_info {
	struct msm_sensor_power_setting_array power_setting_array;
	uint8_t  is_init_params_valid;
	struct msm_sensor_init_params sensor_init_params;
	uint8_t is_flash_supported;
};

struct sensorb_cfg_data {