Skip to content

Commit

Permalink
platform/x86: GPD pocket fan: Fix error message when temp-limits are …
Browse files Browse the repository at this point in the history
…out of range

Commit 1f27dbd ("platform/x86: GPD pocket fan: Allow somewhat
lower/higher temperature limits") changed the module-param sanity check
to accept temperature limits between 20 and 90 degrees celcius.

But the error message printed when the module params are outside this
range was not updated. This commit updates the error message to match
the new min and max value for the temp-limits.

Reported-by: Pavel Machek <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
  • Loading branch information
jwrdegoede authored and andy-shev committed Mar 20, 2020
1 parent 6cc8f65 commit 1d6f8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/gpd-pocket-fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static int gpd_pocket_fan_probe(struct platform_device *pdev)

for (i = 0; i < ARRAY_SIZE(temp_limits); i++) {
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 20000 and 90000)\n",
temp_limits[i]);
temp_limits[0] = TEMP_LIMIT0_DEFAULT;
temp_limits[1] = TEMP_LIMIT1_DEFAULT;
Expand Down

0 comments on commit 1d6f8c5

Please sign in to comment.