Browse Source

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 <[email protected]>
Ravi Kumar Bokka 1 year ago
parent
commit
d927db8e99
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/linux/ITrustedCameraDriver.h

+ 2 - 2
include/linux/ITrustedCameraDriver.h

@@ -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 };