Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: huawei-wmi: Remove unnecessary battery mutex

battery_lock mutex is never used and not needed.

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>

authored by

Ayman Bagabas and committed by
Andy Shevchenko
16c6c057 39c0a629

-2
-2
drivers/platform/x86/huawei-wmi.c
··· 67 67 struct led_classdev cdev; 68 68 struct device *dev; 69 69 70 - struct mutex battery_lock; 71 70 struct mutex wmi_lock; 72 71 }; 73 72 ··· 806 807 807 808 if (wmi_has_guid(HWMI_METHOD_GUID)) { 808 809 mutex_init(&huawei_wmi->wmi_lock); 809 - mutex_init(&huawei_wmi->battery_lock); 810 810 811 811 huawei_wmi_leds_setup(&pdev->dev); 812 812 huawei_wmi_fn_lock_setup(&pdev->dev);