platform/x86: GPD pocket fan: Use a min-speed of 2 while charging
authorHans de Goede <hdegoede@redhat.com>
Fri, 19 Jan 2018 20:47:08 +0000 (21:47 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Jan 2018 18:44:15 +0000 (20:44 +0200)
commit594ce6db326e3a2bff9a8e04cc333dea5467b020
treed7f070aeea0189b18281c4cfb99a5eaf3ec9da4b
parentd890acf728aefc47fd90733d5fef1dff89857748
platform/x86: GPD pocket fan: Use a min-speed of 2 while charging

Newer versions of the GPD pocket BIOS set the fan-speed to 2 when a
charger gets plugged in while the device is off. Mirror this in our
fan driver and use a minimum speed of 2 while charging,

Cc: James <kernel@madingley.org>
Suggested-by: James <kernel@madingley.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/gpd-pocket-fan.c