media: msm: fix compilation when MSM_CAMERA is disabled
diff --git a/include/media/msm_camera.h b/include/media/msm_camera.h
index 44be6c6..2ac7f7b 100644
--- a/include/media/msm_camera.h
+++ b/include/media/msm_camera.h
@@ -1540,7 +1540,7 @@
int8_t cal_method;
int8_t cal_current_point;
int8_t cal_max_point;
-#if (CONFIG_HTC_CAMERA_HAL_VERSION >= 2)
+#if defined(CONFIG_MSM_CAMERA) && (CONFIG_HTC_CAMERA_HAL_VERSION >= 2)
int8_t bypass_ois_cal;
#endif
};
@@ -1606,7 +1606,7 @@
uint8_t is_af_supported;
uint8_t is_ois_supported;
uint8_t is_cal_supported;
-#if (CONFIG_HTC_CAMERA_HAL_VERSION == 3)
+#if defined(CONFIG_MSM_CAMERA) && (CONFIG_HTC_CAMERA_HAL_VERSION == 3)
int8_t enable_focus_step_log;
uint8_t small_step_damping;
uint8_t medium_step_damping;