platform/x86: asus-wmi: Refactor charge threshold to use the battery hooking API
authorKristian Klausen <kristian@klausen.dk>
Mon, 9 Sep 2019 17:31:28 +0000 (19:31 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 10 Sep 2019 11:32:58 +0000 (14:32 +0300)
commit7973353e92ee1e7ca3b2eb361a4b7cb66c92abee
tree5f42575b127d7d3c4e83566075a8425b59b54ce2
parent0c37f44845557b5e5b91ab320f256a4fd5059648
platform/x86: asus-wmi: Refactor charge threshold to use the battery hooking API

At the same time use the official naming for the knobs.

Tested on a Zenbook UX430UNR.

Signed-off-by: Kristian Klausen <kristian@klausen.dk>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/asus-wmi.c