securemsm-kernel:Initialize Camera driver structure and fix compilation error
CameraDriver structure initialized explicitly to get version info and remove INT32_C undefined macro definition to avoid compilation error. Change-Id: If79a83383634fb379d860746ea3611e46295cd64 Signed-off-by: Ravi Kumar Bokka <quic_c_rbokka@quicinc.com>
This commit is contained in:
@@ -30,7 +30,7 @@ typedef struct {
|
||||
uint64_t reserved;
|
||||
} ITCDriverSensorInfo;
|
||||
|
||||
#define ITrustedCameraDriver_ERROR_NOT_ALLOWED INT32_C(10)
|
||||
#define ITrustedCameraDriver_ERROR_NOT_ALLOWED 10
|
||||
|
||||
#define ITrustedCameraDriver_OP_dynamicProtectSensor 0
|
||||
#define ITrustedCameraDriver_OP_getVersion 1
|
||||
@@ -91,7 +91,7 @@ ITrustedCameraDriver_getVersion(struct Object self, uint32_t *arch_ver_ptr,
|
||||
uint32_t m_arch_ver;
|
||||
uint32_t m_max_ver;
|
||||
uint32_t m_min_ver;
|
||||
} o;
|
||||
} o = {0};
|
||||
|
||||
a[0].b = (struct ObjectBuf) { &o, 12 };
|
||||
|
||||
|
Reference in New Issue
Block a user