linux-stable/drivers/platform
Hans de Goede 01e28c1b29 platform/x86: GPD pocket fan: Use default values when wrong modparams are given
Use our default values when wrong module-parameters are given, instead of
refusing to load. Refusing to load leaves the fan at the BIOS default
setting, which is "Off". The CPU's thermal throttling should protect the
system from damage, but not-loading is really not the best fallback in this
case.

This commit fixes this by re-setting module-parameter values to their
defaults if they are out of range, instead of failing the probe with
-EINVAL.

Cc: stable@vger.kernel.org
Cc: Jason Anderson <jasona.594@gmail.com>
Reported-by: Jason Anderson <jasona.594@gmail.com>
Fixes: 594ce6db32 ("platform/x86: GPD pocket fan: Use a min-speed of 2 while charging")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
2020-01-10 11:57:22 +02:00
..
chrome chrome platform changes for v5.5 2019-12-03 14:37:12 -08:00
goldfish platform: goldfish: Allow goldfish drivers for archs with IOMEM and DMA 2019-10-10 15:24:20 +02:00
mellanox platform/mellanox: fix potential deadlock in the tmfifo driver 2020-01-10 11:57:21 +02:00
mips MIPS: Loongson: Fix return value of loongson_hwmon_init 2019-11-04 10:50:55 -08:00
olpc Platform: OLPC: add SPI MODULE_DEVICE_TABLE 2019-07-25 20:21:00 +03:00
x86 platform/x86: GPD pocket fan: Use default values when wrong modparams are given 2020-01-10 11:57:22 +02:00
Kconfig platform-drivers-x86 for v5.3-1 2019-07-14 16:51:47 -07:00
Makefile Platform: OLPC: Add XO-1.75 EC driver 2019-05-20 17:27:08 +03:00