platform/x86: ideapad-laptop: Expose conservation mode switch
authorHao Wei Tee <angelsl@in04.sg>
Mon, 14 Aug 2017 16:13:51 +0000 (00:13 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 14 Aug 2017 20:27:12 +0000 (23:27 +0300)
commitade50296186a1c45311d05a06117a2bd112d37fd
tree807769b70b6fcf9953201642547a6b1c76b8eb67
parentc977b98bbef5898ed3d30b08ea67622e9e82082a
platform/x86: ideapad-laptop: Expose conservation mode switch

This exposes the battery conservation mode present on some (?) IdeaPads.
The mode is set by calling ACPI method SBMC with argument 3 (on) or
5 (off). Status is reported in bit 5 of the return value of ACPI method
GBMD.

Signed-off-by: Hao Wei Tee <angelsl@in04.sg>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/ideapad-laptop.c