Explorar el Código

mm-drivers: hw_fence: add guard to avoid redefinition of synx client IDs

On some targets, the synx api defines synx hwfence client IDs. Add guard
to prevent redefinitions.

Change-Id: If947aa39fa15756c7845613d666dbea84adc3a4b
Signed-off-by: Grace An <[email protected]>
Grace An hace 1 año
padre
commit
129a3797e8
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      hw_fence/include/msm_hw_fence_synx_translation.h

+ 4 - 2
hw_fence/include/msm_hw_fence_synx_translation.h

@@ -8,12 +8,13 @@
 
 #include <synx_api.h>
 
+extern bool hw_fence_driver_enable;
+
+#ifndef SYNX_HW_FENCE_CLIENT_START
 #define SYNX_HW_FENCE_CLIENT_START 1024
 #define SYNX_HW_FENCE_CLIENT_END 4096
 #define SYNX_MAX_SIGNAL_PER_CLIENT 64
 
-extern bool hw_fence_driver_enable;
-
 /**
  * enum synx_client_id : Unique identifier of the supported clients
  *
@@ -80,6 +81,7 @@ enum synx_hwfence_client_id {
 		SYNX_MAX_SIGNAL_PER_CLIENT,
 	SYNX_CLIENT_HW_FENCE_MAX = SYNX_HW_FENCE_CLIENT_END,
 };
+#endif
 
 #if IS_ENABLED(CONFIG_QTI_HW_FENCE)
 /**