Browse Source

Merge "msm: camera: sensor: Rename the dtsi entry to avoid the predefined string" into camera-kernel.lnx.4.0

Camera Software Integration 4 năm trước cách đây
mục cha
commit
bd56b374d0
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      drivers/cam_sensor_module/cam_res_mgr/cam_res_mgr.c

+ 4 - 4
drivers/cam_sensor_module/cam_res_mgr/cam_res_mgr.c

@@ -760,7 +760,7 @@ static int cam_res_mgr_parse_dt_shared_gpio(
 
 	of_node = dev->of_node;
 	dt->num_shared_gpio = of_property_count_u32_elems(of_node,
-		"shared-gpios");
+		"gpios-shared");
 
 	if (dt->num_shared_gpio <= 0) {
 		CAM_DBG(CAM_RES,
@@ -776,7 +776,7 @@ static int cam_res_mgr_parse_dt_shared_gpio(
 		return -EINVAL;
 	}
 
-	rc = of_property_read_u32_array(of_node, "shared-gpios",
+	rc = of_property_read_u32_array(of_node, "gpios-shared",
 		dt->shared_gpio, dt->num_shared_gpio);
 	if (rc) {
 		CAM_ERR(CAM_RES, "Get shared gpio array failed.");
@@ -796,7 +796,7 @@ static int cam_res_mgr_parse_dt_shared_pinctrl_gpio(
 
 	of_node = dev->of_node;
 	dt->num_shared_pctrl_gpio = of_property_count_u32_elems(of_node,
-		"shared-pinctrl-gpios");
+		"gpios-shared-pinctrl");
 
 	if (dt->num_shared_pctrl_gpio <= 0) {
 		CAM_DBG(CAM_RES,
@@ -825,7 +825,7 @@ static int cam_res_mgr_parse_dt_shared_pinctrl_gpio(
 	CAM_INFO(CAM_RES,
 		"number of pctrl_gpio: %d", dt->num_shared_pctrl_gpio);
 
-	rc = of_property_read_u32_array(of_node, "shared-pinctrl-gpios",
+	rc = of_property_read_u32_array(of_node, "gpios-shared-pinctrl",
 		dt->shared_pctrl_gpio, dt->num_shared_pctrl_gpio);
 	if (rc) {
 		CAM_ERR(CAM_RES, "Get shared pinctrl gpio array failed.");