Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1654583
| From | Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 3/5] ACPI / bus: Switch to use new generic UUID API |
| Date | 2017-05-31 21:50 +0200 |
| Message-ID | <tNhN0-CQ-23@gated-at.bofh.it> (permalink) |
| References | <tNhN0-CQ-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
There are new types and helpers that are supposed to be used in new code.
As a preparation to get rid of legacy types and API functions do
the conversion here.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/acpi/bus.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 784bda663d16..042cd16265b3 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -225,13 +225,13 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context)
struct acpi_object_list input;
union acpi_object in_params[4];
union acpi_object *out_obj;
- u8 uuid[16];
+ guid_t guid;
u32 errors;
struct acpi_buffer output = {ACPI_ALLOCATE_BUFFER, NULL};
if (!context)
return AE_ERROR;
- if (ACPI_FAILURE(acpi_str_to_uuid(context->uuid_str, uuid)))
+ if (guid_parse(context->uuid_str, &guid))
return AE_ERROR;
context->ret.length = ACPI_ALLOCATE_BUFFER;
context->ret.pointer = NULL;
@@ -241,7 +241,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context)
input.pointer = in_params;
in_params[0].type = ACPI_TYPE_BUFFER;
in_params[0].buffer.length = 16;
- in_params[0].buffer.pointer = uuid;
+ in_params[0].buffer.pointer = (u8 *)&guid;
in_params[1].type = ACPI_TYPE_INTEGER;
in_params[1].integer.value = context->rev;
in_params[2].type = ACPI_TYPE_INTEGER;
--
2.11.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v2 3/5] ACPI / bus: Switch to use new generic UUID API Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-05-31 21:50 +0200
Re: [PATCH v2 3/5] ACPI / bus: Switch to use new generic UUID API "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-06-01 01:00 +0200
Re: [PATCH v2 3/5] ACPI / bus: Switch to use new generic UUID API kbuild test robot <lkp@intel.com> - 2017-06-01 02:00 +0200
Re: [PATCH v2 3/5] ACPI / bus: Switch to use new generic UUID API kbuild test robot <lkp@intel.com> - 2017-06-01 02:10 +0200
Re: [PATCH v2 3/5] ACPI / bus: Switch to use new generic UUID API Christoph Hellwig <hch@lst.de> - 2017-06-05 18:10 +0200
Re: [PATCH v2 3/5] ACPI / bus: Switch to use new generic UUID API Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-06-05 19:30 +0200
Re: [PATCH v2 3/5] ACPI / bus: Switch to use new generic UUID API "Rafael J. Wysocki" <rafael@kernel.org> - 2017-06-05 22:40 +0200
Re: [PATCH v2 3/5] ACPI / bus: Switch to use new generic UUID API Christoph Hellwig <hch@lst.de> - 2017-06-06 12:00 +0200
csiph-web