    LOGD("destroyed session: %d", ret);
  }
  
  static void cameras_close(MultiCameraState *s) {
    camera_close(&s->rear);
    camera_close(&s->wide);
    camera_close(&s->front);
  
    delete s->sm;
    delete s->pm;
  }
  
 
</s> remove   camera_close(&s->rear);
  camera_close(&s->front);
 </s> add   camera_close(&s->road_cam);
  camera_close(&s->driver_cam); </s> remove   delete s->sm_front;
 </s> add   delete s->sm; </s> remove   camera_close(&s->rear);
  camera_close(&s->front);
 </s> add   camera_close(&s->road_cam);
  camera_close(&s->driver_cam); </s> remove static void front_start(CameraState *s) {
 </s> add static void driver_camera_start(CameraState *s) { </s> remove   front_start(&s->front);
  rear_start(&s->rear);
 </s> add   driver_camera_start(&s->driver_cam);
  road_camera_start(&s->road_cam);
  camera_close(&s->road_cam);
  camera_close(&s->wide_road_cam);
  camera_close(&s->driver_cam);
    LOGD("destroyed session: %d", ret);
  }
  
  static void cameras_close(MultiCameraState *s) {
  camera_close(&s->road_cam);
  camera_close(&s->wide_road_cam);
  camera_close(&s->driver_cam);
  camera_close(&s->road_cam);
  camera_close(&s->wide_road_cam);
  camera_close(&s->driver_cam);
  camera_close(&s->road_cam);
  camera_close(&s->wide_road_cam);
  camera_close(&s->driver_cam);
  
    delete s->sm;
    delete s->pm;
  }
  
keep keep keep keep replace replace replace keep keep keep keep keep
 camerad: rename variables&functions to follow new convention (#20096)

* rename CameraState variables to follow new convention

* continue

* rename camera_process functions

* qcom:rename exposure related variables

* continue

* update commments

* bool real -> bool is_road_cam

* rename sm_front -> sm

* remove paramater tname from start_process_thread

* rename rhd_front to is_rhd

* remove unused varialble name from struct CameraInfo

* rename env_send_xxx

* rename cap_front to cap_driver,cap_rear to cap_road

* rename xxx_camera_process to process_xxx_camera

* update snapshot.py 
selfdrive/camerad/cameras/camera_qcom2.cc