aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2021-11-17 15:12:27 +0530
committerSubrata Banik <subrata.banik@intel.com>2021-11-20 05:17:46 +0000
commitc8193ce58768d3868a876c7eed6a653725b60a6b (patch)
tree064a4f486fb185c4e97ed7441e011b5d4bb8e02b /src
parent31605959a5bd2f33742a8e679b0ad6d42696d34c (diff)
soc/intel/common/thermal: Drop unused parameter of pch_get_ltt_value()
`struct device *dev` as part of the pch_get_ltt_value() argument is being used hence, replace with `void`. BUG=b:193774296 Change-Id: Iecdf6f6c3023f896a27e212d7c59b2030a3fd116 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/59390 Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/common/block/thermal/thermal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/common/block/thermal/thermal.c b/src/soc/intel/common/block/thermal/thermal.c
index 11a6108904..d6e401ed52 100644
--- a/src/soc/intel/common/block/thermal/thermal.c
+++ b/src/soc/intel/common/block/thermal/thermal.c
@@ -23,7 +23,7 @@ static uint8_t get_thermal_trip_temp(void)
}
/* PCH Low Temp Threshold (LTT) */
-static uint32_t pch_get_ltt_value(struct device *dev)
+static uint32_t pch_get_ltt_value(void)
{
uint8_t thermal_config;
@@ -68,6 +68,6 @@ void pch_thermal_configuration(void)
reg16 = read16((uint16_t *)thermalbar_pm);
reg16 &= ~CATASTROPHIC_TRIP_POINT_MASK;
/* Low Temp Threshold (LTT) */
- reg16 |= pch_get_ltt_value(dev);
+ reg16 |= pch_get_ltt_value();
write16((uint16_t *)thermalbar_pm, reg16);
}