diff options
| author | 2022-02-11 08:09:27 -0800 | |
|---|---|---|
| committer | 2022-02-25 20:49:29 +0100 | |
| commit | 9ddb00a2a136cc6ebbf6ee32fcf527d0d66044a2 (patch) | |
| tree | 80862c5a9659cf95f674999935728b0f42e7588b /tools/scripts/ssh:/git@git.zx2c4.com/git: | |
| parent | Linux 5.17-rc5 (diff) | |
| download | linux-dev-9ddb00a2a136cc6ebbf6ee32fcf527d0d66044a2.tar.xz linux-dev-9ddb00a2a136cc6ebbf6ee32fcf527d0d66044a2.zip | |
ACPI: fan: Fix error reporting to user space
When user get/set cur_state fails, it should be some negative error
value instead of whatever returned by acpi_evaluate_object() or from
acpi_execute_simple_method(). The return value from these apis is
some positive values greater than 0. For example if AE_NOT_FOUND
is returned it will be "5".
In other ACPI drivers, -ENODEV is returned when ACPI_FAILURE(status)
is true. Do the same thing here for thermal sysfs callbacks for
get and set for failures.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
