summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2020-01-06 15:42:19 +0100
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-01-13 11:37:50 +0200
commit1f27dbd8265dbb379926c8f6a4453fe7fe26d7a3 (patch)
treecbf3e567dba801e0a204d5065904e8de1d3a74fe
parent6ae01050e49f0080ae30575d9b45a6d4a3d7ee23 (diff)
downloadlinux-1f27dbd8265dbb379926c8f6a4453fe7fe26d7a3.tar.gz
linux-1f27dbd8265dbb379926c8f6a4453fe7fe26d7a3.tar.bz2
linux-1f27dbd8265dbb379926c8f6a4453fe7fe26d7a3.zip
platform/x86: GPD pocket fan: Allow somewhat lower/higher temperature limits
Allow the user to configure the fan to turn on / speed-up at lower thresholds then before (20 degrees Celcius as minimum instead of 40) and likewise also allow the user to delay the fan speeding-up till the temperature hits 90 degrees Celcius (was 70). Cc: Jason Anderson <jasona.594@gmail.com> Reported-by: Jason Anderson <jasona.594@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-rw-r--r--drivers/platform/x86/gpd-pocket-fan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/gpd-pocket-fan.c b/drivers/platform/x86/gpd-pocket-fan.c
index 73eb1572b966..b471b86c28fe 100644
--- a/drivers/platform/x86/gpd-pocket-fan.c
+++ b/drivers/platform/x86/gpd-pocket-fan.c
@@ -127,7 +127,7 @@ static int gpd_pocket_fan_probe(struct platform_device *pdev)
int i;
for (i = 0; i < ARRAY_SIZE(temp_limits); i++) {
- if (temp_limits[i] < 40000 || temp_limits[i] > 70000) {
+ if (temp_limits[i] < 20000 || temp_limits[i] > 90000) {
dev_err(&pdev->dev, "Invalid temp-limit %d (must be between 40000 and 70000)\n",
temp_limits[i]);
temp_limits[0] = TEMP_LIMIT0_DEFAULT;