Loading drivers/media/platform/msm/ais/cam_sensor_module/cam_cci/cam_cci_core.c +11 −0 Original line number Diff line number Diff line Loading @@ -1758,6 +1758,17 @@ int32_t cam_cci_core_cam_ctrl(struct v4l2_subdev *sd, } switch (cmd->op_code) { case CAM_QUERY_CAP: { struct cam_sensor_query_cap sensor_cap; sensor_cap.slot_info = cci_dev->soc_info.index; if (copy_to_user(u64_to_user_ptr(cmd->handle), &sensor_cap, sizeof(struct cam_sensor_query_cap))) { CAM_ERR(CAM_SENSOR, "Failed Copy to User"); rc = -EFAULT; } } break; case AIS_SENSOR_I2C_POWER_UP: { struct ais_sensor_cmd_i2c_pwrup cci_pwrup; Loading Loading
drivers/media/platform/msm/ais/cam_sensor_module/cam_cci/cam_cci_core.c +11 −0 Original line number Diff line number Diff line Loading @@ -1758,6 +1758,17 @@ int32_t cam_cci_core_cam_ctrl(struct v4l2_subdev *sd, } switch (cmd->op_code) { case CAM_QUERY_CAP: { struct cam_sensor_query_cap sensor_cap; sensor_cap.slot_info = cci_dev->soc_info.index; if (copy_to_user(u64_to_user_ptr(cmd->handle), &sensor_cap, sizeof(struct cam_sensor_query_cap))) { CAM_ERR(CAM_SENSOR, "Failed Copy to User"); rc = -EFAULT; } } break; case AIS_SENSOR_I2C_POWER_UP: { struct ais_sensor_cmd_i2c_pwrup cci_pwrup; Loading