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

Configure Feed

Select the types of activity you want to include in your feed.

drm/nouveau/gsp: simplify code with acpi_get_local_u64_address()

Now we have a helper so there's no need to open-code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260120152049.1763055-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>

authored by

Andy Shevchenko and committed by
Danilo Krummrich
9d757669 dbce4317

+4 -3
+4 -3
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
··· 796 796 struct acpi_object_list input = { 1, &mux_arg }; 797 797 acpi_handle iter = NULL, handle_mux = NULL; 798 798 acpi_status status; 799 - unsigned long long value; 799 + u64 value; 800 + int ret; 800 801 801 802 mode->status = 0xffff; 802 803 part->status = 0xffff; ··· 807 806 if (ACPI_FAILURE(status) || !iter) 808 807 return; 809 808 810 - status = acpi_evaluate_integer(iter, "_ADR", NULL, &value); 811 - if (ACPI_FAILURE(status) || value != id) 809 + ret = acpi_get_local_u64_address(iter, &value); 810 + if (ret || value != id) 812 811 continue; 813 812 814 813 handle_mux = iter;