mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 16:07:39 +00:00
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>
This commit is contained in:
parent
6ae01050e4
commit
1f27dbd826
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ static int gpd_pocket_fan_probe(struct platform_device *pdev)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(temp_limits); 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",
|
dev_err(&pdev->dev, "Invalid temp-limit %d (must be between 40000 and 70000)\n",
|
||||||
temp_limits[i]);
|
temp_limits[i]);
|
||||||
temp_limits[0] = TEMP_LIMIT0_DEFAULT;
|
temp_limits[0] = TEMP_LIMIT0_DEFAULT;
|
||||||
|
|
Loading…
Reference in a new issue