msm: camera: csiphy: Refine MINK API usage for secure camera
Use MINK API for all the targets that support domain ID and use legacy API for all other targets. In addition, use a target based macro to not compile the MINK API for the older targets where those APIs are not defined. Change-Id: I0d8f05df6ca8126db1e3ad8456fe78aa77a33ebf CRs-Fixed: 3529425 Signed-off-by: Vijay Kumar Tumati <quic_vtumati@quicinc.com>
This commit is contained in:

committed by
Camera Software Integration

parent
a795d64c87
commit
db988fcff4
@@ -318,15 +318,7 @@ void cam_free_clear(const void * ptr)
|
||||
}
|
||||
#endif
|
||||
|
||||
bool cam_is_mink_api_available(void)
|
||||
{
|
||||
#if KERNEL_VERSION(6, 0, 0) <= LINUX_VERSION_CODE
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
#if KERNEL_VERSION(6, 0, 0) <= LINUX_VERSION_CODE
|
||||
#ifdef CONFIG_DOMAIN_ID_SECURE_CAMERA
|
||||
int cam_csiphy_notify_secure_mode(struct csiphy_device *csiphy_dev,
|
||||
bool protect, int32_t offset, bool is_shutdown)
|
||||
{
|
||||
|
Reference in New Issue
Block a user