]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: huawei-wmi: Stricter battery thresholds set
authorAyman Bagabas <ayman.bagabas@gmail.com>
Sun, 20 Oct 2019 17:00:07 +0000 (13:00 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 21 Oct 2019 09:17:30 +0000 (12:17 +0300)
commit7c675486b97afea710f4c11ca71cb228c1e671be
treee0e05ccc6bae63bee7085bcd2db7fb2ab59d8eb1
parentd3f5b7366a4af088bc73be67835d2a394e2ce2e0
platform/x86: huawei-wmi: Stricter battery thresholds set

Check if battery thresholds are within 0 and 100.

Fixes: 355a070b09ab ("platform/x86: huawei-wmi: Add battery charging thresholds")
Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/huawei-wmi.c