From c8193ce58768d3868a876c7eed6a653725b60a6b Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Wed, 17 Nov 2021 15:12:27 +0530 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59390 Reviewed-by: Felix Singer Reviewed-by: Angel Pons Reviewed-by: EricR Lai Tested-by: build bot (Jenkins) --- src/soc/intel/common/block/thermal/thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3