Browse Source

msm: camera: csiphy: Fix compile time error

Address the inconsistency in a function prototype
across multiple kernel versions.

Change-Id: Ib5d3c3df74a89a019b0f1f858746888ce0101512
CRs-Fixed: 3509086
Signed-off-by: Vijay Kumar Tumati <[email protected]>
Signed-off-by: wasikhan <[email protected]>
wasikhan 2 years ago
parent
commit
63cbaf576b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      drivers/cam_utils/cam_compat.c

+ 2 - 2
drivers/cam_utils/cam_compat.c

@@ -393,7 +393,7 @@ int cam_csiphy_notify_secure_mode(struct csiphy_device *csiphy_dev,
 }
 #elif KERNEL_VERSION(5, 4, 0) <= LINUX_VERSION_CODE
 int cam_csiphy_notify_secure_mode(struct csiphy_device *csiphy_dev,
-	bool protect, int32_t offset)
+	bool protect, int32_t offset, bool __always_unused is_shutdown)
 {
 	int rc = 0;
 
@@ -426,7 +426,7 @@ int cam_csiphy_notify_secure_mode(struct csiphy_device *csiphy_dev,
 }
 #else
 int cam_csiphy_notify_secure_mode(struct csiphy_device *csiphy_dev,
-	bool protect, int32_t offset)
+	bool protect, int32_t offset, bool __always_unused is_shutdown)
 {
 	int rc = 0;
 	struct scm_desc description = {