Skip to content

Commit 37d66cf

Browse files
opsiffJiri Kosina
authored andcommitted
HID: intel-thc-hid: intel-quicki2c: pass correct arguments to acpi_evaluate_object
Delete unused argument, pass correct argument to acpi_evaluate_object. Log: intel_quicki2c 0000:00:10.0: enabling device (0000 -> 0002) ACPI: \_SB.PC00.THC0.ICRS: 1 arguments were passed to a non-method ACPI object (Buffer) (2023062/nsarguments-211) ACPI: \_SB.PC00.THC0.ISUB: 1 arguments were passed to a non-method ACPI object (Buffer) (2023062/nsarguments-211) Fixes: 5282e45 ("HID: intel-thc-hid: intel-quicki2c: Add THC QuickI2C ACPI interfaces") Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Signed-off-by: WangYuli <wangyuli@uniontech.com> Reviewed-by: Even Xu <even.xu@intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent 5e06802 commit 37d66cf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,10 @@ static int quicki2c_acpi_get_dsd_property(struct acpi_device *adev, acpi_string
8282
{
8383
acpi_handle handle = acpi_device_handle(adev);
8484
struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
85-
union acpi_object obj = { .type = type };
86-
struct acpi_object_list arg_list = {
87-
.count = 1,
88-
.pointer = &obj,
89-
};
9085
union acpi_object *ret_obj;
9186
acpi_status status;
9287

93-
status = acpi_evaluate_object(handle, dsd_method_name, &arg_list, &buffer);
88+
status = acpi_evaluate_object(handle, dsd_method_name, NULL, &buffer);
9489
if (ACPI_FAILURE(status)) {
9590
acpi_handle_err(handle,
9691
"Can't evaluate %s method: %d\n", dsd_method_name, status);

0 commit comments

Comments
 (0)