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

Commit d0274520 authored by Sureshnaidu Laveti's avatar Sureshnaidu Laveti
Browse files

msm: camera: sensor: Fix CCI device ID for actuator



Fix CCI device index for actuator by reading the
correct device tree property.

Change-Id: Ib7f18bd960425eec042185a0e4fe48f140caac6a
Signed-off-by: default avatarSureshnaidu Laveti <lsuresh@codeaurora.org>
parent c153c0af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ int32_t cam_actuator_parse_dt(struct cam_actuator_ctrl_t *a_ctrl,
		}

		of_parent = of_get_parent(of_node);
		if (of_property_read_u32(of_parent, "cci-device",
		if (of_property_read_u32(of_parent, "cell-index",
				&a_ctrl->cci_num) < 0)
			/* Set default master 0 */
			a_ctrl->cci_num = CCI_DEVICE_0;