Re: [PATCH v2 7/8] ACPI: property: Add support for parsing buffer property UUID

Andy Shevchenko
2022-05-20T14:28:59Z

On Fri, May 20, 2022 at 09:11:47AM +0300, Sakari Ailus wrote:
> Add support for newly added buffer property UUID, as defined in the DSD
> guide.

...

> static bool acpi_enumerate_nondev_subnodes(acpi_handle scope,
> - const union acpi_object *desc,
> + union acpi_object *desc,
> struct acpi_device_data *data,
> struct fwnode_handle *parent);
> -static bool acpi_extract_properties(const union acpi_object *desc,
> +static bool acpi_extract_properties(acpi_handle handle,
> + union acpi_object *desc,
> struct acpi_device_data *data);

Looking at the first one, can union member be const in the last one?

...

> struct acpi_device_properties {
> const guid_t *guid;
> - const union acpi_object *properties;
> + union acpi_object *properties;

Probably this change explains on the above question...

> struct list_head list;
> + void **bufs;
> };

--
With Best Regards,
Andy Shevchenko