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

Commit 21001a99 authored by Atanas Filipov's avatar Atanas Filipov Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: Check status of actuators



The actuator should be included in sensor subdev list
only if it is enabled/exist, otherwise during next expected
requests the CCI bus will produce error/timeout.

Info:
 qcom,actuator: probe of 1b0c000.qcom,cci:qcom,
  actuator@0failed with error -22

Change-Id: Id941d046134d4c8e63f376c635695a8296c73fea
Signed-off-by: default avatarAtanas Filipov <afilipov@codeaurora.org>
parent f762adc5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -217,7 +217,10 @@ int msm_sensor_get_sub_module_index(struct device_node *of_node,
			pr_err("%s failed %d\n", __func__, __LINE__);
			goto ERROR;
		}
		if (of_device_is_available(src_node))
			sensor_info->subdev_id[SUB_MODULE_ACTUATOR] = val;
		else
			CDBG("%s:%d actuator disabled!\n", __func__, __LINE__);
		of_node_put(src_node);
		src_node = NULL;
	}