Fix link error due to vehicle_camera_config_flag
When including vehicle_camera.h in multiple sources, there is an linker
error due to multiple definition of vehicle_camera_config_flag.
Bug 32272040
Change-Id: I1d1f9d2c4dc88d5217cb39003cb9be44c3748720
(cherry picked from commit 644a360cff7be804e167258c9d77b6f747096b8a)
diff --git a/include/hardware/vehicle_camera.h b/include/hardware/vehicle_camera.h
index 8075aee..c288796 100644
--- a/include/hardware/vehicle_camera.h
+++ b/include/hardware/vehicle_camera.h
@@ -68,7 +68,7 @@
/**
* Bitmask of features supported by a camera module
*/
-enum {
+typedef enum {
VEHICLE_CAMERA_CONFIG_FLAG_ANDROID_OVERLAY_SUPPORT = 0x1,
VEHICLE_CAMERA_CONFIG_FLAG_CAMERA_CROP_SUPPORT = 0x2,
VEHICLE_CAMERA_CONFIG_FLAG_CAMERA_POSITIONING_SUPPORT = 0x4
@@ -109,7 +109,7 @@
typedef struct vehicle_camera_device_t {
struct hw_device_t common;
- const uint32_t camera_type;
+ uint32_t camera_type;
/**
* Returns the capabilities of this camera.