  
    while (!do_exit) {
      struct pollfd fds[2] = {{.fd = cameras[0]->isp_fd, .events = POLLPRI},
                              {.fd = cameras[1]->isp_fd, .events = POLLPRI}};
      int ret = poll(fds, ARRAYSIZE(fds), 1000);
      if (ret < 0) {
        if (errno == EINTR || errno == EAGAIN) continue;
        LOGE("poll failed (%d - %d)", ret, errno);
        break;
      }
 
</s> remove     int ret = poll(fds, ARRAYSIZE(fds), 1000);
 </s> add     int ret = poll(fds, std::size(fds), 1000); </s> remove   for (i = 1; i < ARRAYSIZE(gains); i++) {
 </s> add   for (i = 1; i < std::size(gains); i++) { </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     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);
    int ret = poll(fds, std::size(fds), 1000);
  
    while (!do_exit) {
      struct pollfd fds[2] = {{.fd = cameras[0]->isp_fd, .events = POLLPRI},
                              {.fd = cameras[1]->isp_fd, .events = POLLPRI}};
    int ret = poll(fds, std::size(fds), 1000);
      if (ret < 0) {
        if (errno == EINTR || errno == EAGAIN) continue;
        LOGE("poll failed (%d - %d)", ret, errno);
        break;
      }
keep keep keep keep replace keep keep keep keep keep
 Use std::size for element counts (#20654) 
selfdrive/camerad/cameras/camera_qcom.cc