platform/x86: GPD pocket fan: Allow somewhat lower/higher temperature limits
authorHans de Goede <hdegoede@redhat.com>
Mon, 6 Jan 2020 14:42:19 +0000 (15:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Feb 2020 14:43:44 +0000 (14:43 +0000)
commit678ad8eb4250dcffe65c527d9865633b9512e0cb
tree5da8d9bcead0040254a30ef9a87b915632033690
parentadbaaac0a35b2a4fd7a66a17e8069a8b28c52ad3
platform/x86: GPD pocket fan: Allow somewhat lower/higher temperature limits

[ Upstream commit 1f27dbd8265dbb379926c8f6a4453fe7fe26d7a3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/gpd-pocket-fan.c