OSDN Git Service

platform/x86: GPD pocket fan: Stop work on suspend
authorHans de Goede <hdegoede@redhat.com>
Fri, 19 Jan 2018 20:47:09 +0000 (21:47 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Jan 2018 18:44:16 +0000 (20:44 +0200)
commite5778689a9653c0f364efbbd6b9bdd0527e7d8cb
tree26e5c090bf124109254e5f1e6ab6b8a9e35d4edd
parent594ce6db326e3a2bff9a8e04cc333dea5467b020
platform/x86: GPD pocket fan: Stop work on suspend

Stop the work on suspend, otherwise it may run between our suspend method
running and the system suspending, possibly restarting the fan which
we've just stopped.

Note we already requeue the work on resume, so that we get a fresh speed
at resume.

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