* [PATCH v2 1/1] ACPI: video: simplify code with acpi_get_local_u64_address()
@ 2026-01-21 8:46 Andy Shevchenko
2026-01-23 19:17 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2026-01-21 8:46 UTC (permalink / raw)
To: Rafael J. Wysocki, linux-acpi, linux-kernel
Cc: Rafael J. Wysocki, Len Brown, Andy Shevchenko
Now we have a helper so there's no need to open-code.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v2: removed now unused variable (LKP)
drivers/acpi/acpi_video.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c
index 944aba605c1a..69469757b965 100644
--- a/drivers/acpi/acpi_video.c
+++ b/drivers/acpi/acpi_video.c
@@ -1134,13 +1134,11 @@ static int acpi_video_bus_get_one_device(struct acpi_device *device, void *arg)
struct acpi_video_bus *video = arg;
struct acpi_video_device_attrib *attribute;
struct acpi_video_device *data;
- unsigned long long device_id;
- acpi_status status;
int device_type;
+ u64 device_id;
- status = acpi_evaluate_integer(device->handle, "_ADR", NULL, &device_id);
/* Skip devices without _ADR instead of failing. */
- if (ACPI_FAILURE(status))
+ if (acpi_get_local_u64_address(device->handle, &device_id))
goto exit;
data = kzalloc(sizeof(struct acpi_video_device), GFP_KERNEL);
--
2.50.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 1/1] ACPI: video: simplify code with acpi_get_local_u64_address()
2026-01-21 8:46 [PATCH v2 1/1] ACPI: video: simplify code with acpi_get_local_u64_address() Andy Shevchenko
@ 2026-01-23 19:17 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2026-01-23 19:17 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Rafael J. Wysocki, linux-acpi, linux-kernel, Rafael J. Wysocki,
Len Brown
On Wed, Jan 21, 2026 at 9:47 AM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> Now we have a helper so there's no need to open-code.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>
> v2: removed now unused variable (LKP)
>
> drivers/acpi/acpi_video.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c
> index 944aba605c1a..69469757b965 100644
> --- a/drivers/acpi/acpi_video.c
> +++ b/drivers/acpi/acpi_video.c
> @@ -1134,13 +1134,11 @@ static int acpi_video_bus_get_one_device(struct acpi_device *device, void *arg)
> struct acpi_video_bus *video = arg;
> struct acpi_video_device_attrib *attribute;
> struct acpi_video_device *data;
> - unsigned long long device_id;
> - acpi_status status;
> int device_type;
> + u64 device_id;
>
> - status = acpi_evaluate_integer(device->handle, "_ADR", NULL, &device_id);
> /* Skip devices without _ADR instead of failing. */
> - if (ACPI_FAILURE(status))
> + if (acpi_get_local_u64_address(device->handle, &device_id))
> goto exit;
>
> data = kzalloc(sizeof(struct acpi_video_device), GFP_KERNEL);
> --
Applied as 6.20 material, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-23 19:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-21 8:46 [PATCH v2 1/1] ACPI: video: simplify code with acpi_get_local_u64_address() Andy Shevchenko
2026-01-23 19:17 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox