summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaman Padhiar <npadhiar@codeaurora.org>2019-08-07 15:00:06 +0530
committerNaman Padhiar <npadhiar@codeaurora.org>2019-08-07 15:05:53 +0530
commit57c9807524e2353367c3a77c26d042ea72a680e7 (patch)
tree2cb130f17bdcb1370b3df6d40e8b62914f09a5f4
parent88b8f5d5f22dae427de2c7f55b1999d36c92de76 (diff)
qcacld-3.0: Properly disable thermal mitigation feature
Add feature macro check to properly disable thermal mitigation feature from mainline driver. Change-Id: I6996e0cb24124de0a50a562663a987dcfb362241 CRs-Fixed: 2504880
-rw-r--r--core/pld/src/pld_snoc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/pld/src/pld_snoc.c b/core/pld/src/pld_snoc.c
index cb3dc8dd2ce9..857224793e8f 100644
--- a/core/pld/src/pld_snoc.c
+++ b/core/pld/src/pld_snoc.c
@@ -262,6 +262,7 @@ static int pld_snoc_uevent(struct device *dev,
return 0;
}
+#if defined(CONFIG_WLAN_FW_THERMAL_MITIGATION)
/**
* pld_snoc_set_thermal_state() - Set thermal state for thermal mitigation
* @dev: device
@@ -288,6 +289,7 @@ static int pld_snoc_set_thermal_state(struct device *dev,
return -ENOTSUPP;
}
+#endif
#ifdef MULTI_IF_NAME
#define PLD_SNOC_OPS_NAME "pld_snoc_" MULTI_IF_NAME
@@ -307,7 +309,9 @@ struct icnss_driver_ops pld_snoc_ops = {
.suspend_noirq = pld_snoc_suspend_noirq,
.resume_noirq = pld_snoc_resume_noirq,
.uevent = pld_snoc_uevent,
+#if defined(CONFIG_WLAN_FW_THERMAL_MITIGATION)
.set_therm_state = pld_snoc_set_thermal_state,
+#endif
};
/**