]> git.itanic.dy.fi Git - linux-stable/commit
platform/x86: GPD pocket fan: Fix error message when temp-limits are out of range
authorHans de Goede <hdegoede@redhat.com>
Fri, 6 Mar 2020 09:17:24 +0000 (10:17 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 20 Mar 2020 12:44:47 +0000 (14:44 +0200)
commit1d6f8c5bac93cceb2d4ac8e6331050652004d802
treeeadbee7da8c4aa2bc6bf279bf09277ceec44afef
parent6cc8f6598978b8f30e70bc12f28fbbc9e26227cc
platform/x86: GPD pocket fan: Fix error message when temp-limits are out of range

Commit 1f27dbd8265d ("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 <pavel@denx.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/gpd-pocket-fan.c