aboutsummaryrefslogtreecommitdiff
path: root/drivers/hid/intel-ish-hid/ishtp-hid.h
diff options
context:
space:
mode:
authorGravatar Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> 2021-07-27 09:18:24 -0700
committerGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2021-07-28 18:39:41 +0200
commit41a8457f3f6f829be1f8f8fa7577a46b9b7223ef (patch)
tree510e8241998444cd8d4ecfb462c8b5d1354ff98e /drivers/hid/intel-ish-hid/ishtp-hid.h
parentLinux 5.14-rc3 (diff)
downloadlinux-41a8457f3f6f829be1f8f8fa7577a46b9b7223ef.tar.gz
linux-41a8457f3f6f829be1f8f8fa7577a46b9b7223ef.tar.bz2
linux-41a8457f3f6f829be1f8f8fa7577a46b9b7223ef.zip
ACPI: DPTF: Fix reading of attributes
The current assumption that methods to read PCH FIVR attributes will return integer, is not correct. There is no good way to return integer as negative numbers are also valid. These read methods return a package of integers. The first integer returns status, which is 0 on success and any other value for failure. When the returned status is zero, then the second integer returns the actual value. This change fixes this issue by replacing acpi_evaluate_integer() with acpi_evaluate_object() and use acpi_extract_package() to extract results. Fixes: 2ce6324eadb01 ("ACPI: DPTF: Add PCH FIVR participant driver") Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Cc: 5.10+ <stable@vger.kernel.org> # 5.10+ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/hid/intel-ish-hid/ishtp-hid.h')
0 files changed, 0 insertions, 0 deletions