Skip to content
Commit edeee341 authored by Leonid Maksymchuk's avatar Leonid Maksymchuk Committed by Andy Shevchenko
Browse files

platform/x86: asus_wmi: Fix return value of fan_boost_mode_store

Function fan_boost_mode_store returns 0 if store is successful,
this leads to infinite loop after any write to it's sysfs entry:

# echo 0 >/sys/devices/platform/asus-nb-wmi/fan_boost_mode

This command never ends, one CPU core is at 100% utilization.
This patch fixes this by returning size of written data.

Fixes: b096f626

 ("platform/x86: asus-wmi: Switch fan boost mode")
Signed-off-by: default avatarLeonid Maksymchuk <leonmaxx@gmail.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 6b3586d4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment