  }
  
  static void driver_camera_start(CameraState *s) {
    set_exposure(s, 1.0, 1.0);
    int err = sensor_write_regs(s, start_reg_array, ARRAYSIZE(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA);
    LOG("sensor start regs: %d", err);
  }
  
  void cameras_open(MultiCameraState *s) {
    struct msm_ispif_param_data ispif_params = {
 
</s> remove   int err = sensor_write_regs(s, start_reg_array, ARRAYSIZE(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA);
 </s> add   int err = sensor_write_regs(s, start_reg_array, std::size(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA); </s> remove     err = sensor_write_regs(s, mode_setting_array_imx298, ARRAYSIZE(mode_setting_array_imx298), MSM_CAMERA_I2C_BYTE_DATA);
 </s> add     err = sensor_write_regs(s, mode_setting_array_imx298, std::size(mode_setting_array_imx298), MSM_CAMERA_I2C_BYTE_DATA); </s> remove     err = sensor_write_regs(s, init_array_ov8865, ARRAYSIZE(init_array_ov8865), MSM_CAMERA_I2C_BYTE_DATA);
 </s> add     err = sensor_write_regs(s, init_array_ov8865, std::size(init_array_ov8865), MSM_CAMERA_I2C_BYTE_DATA); </s> remove     err = sensor_write_regs(s, init_array_imx298, ARRAYSIZE(init_array_imx298), MSM_CAMERA_I2C_BYTE_DATA);
 </s> add     err = sensor_write_regs(s, init_array_imx298, std::size(init_array_imx298), MSM_CAMERA_I2C_BYTE_DATA); </s> remove     int ret = poll(fds, ARRAYSIZE(fds), 1000);
 </s> add     int ret = poll(fds, std::size(fds), 1000);
  int err = sensor_write_regs(s, start_reg_array, std::size(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA);
  }
  
  static void driver_camera_start(CameraState *s) {
    set_exposure(s, 1.0, 1.0);
  int err = sensor_write_regs(s, start_reg_array, std::size(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA);
    LOG("sensor start regs: %d", err);
  }
  
  void cameras_open(MultiCameraState *s) {
    struct msm_ispif_param_data ispif_params = {
keep keep keep keep replace keep keep keep keep keep
 Use std::size for element counts (#20654) 
selfdrive/camerad/cameras/camera_qcom.cc