Antwort: Re: [PATCH v2 21/39] acpi: Convert part of acpi_table to use acpi_ctx

2020-03-12 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Hi Wolfgang, > > On Wed, 11 Mar 2020 at 06:58, Wolfgang Wallner > wrote: > > > > Hi Simon, > > > > -"Simon Glass" schrieb: - > > > > > > The current code uses an address but a pointer would result in fewer > > > casts. Also it re

Re: [PATCH v2 21/39] acpi: Convert part of acpi_table to use acpi_ctx

2020-03-11 Thread Simon Glass
Hi Wolfgang, On Wed, 11 Mar 2020 at 06:58, Wolfgang Wallner < wolfgang.wall...@br-automation.com> wrote: > > Hi Simon, > > -"Simon Glass" schrieb: - > > > > The current code uses an address but a pointer would result in fewer > > casts. Also it repeats the alignment code in a lot of place

Antwort: [PATCH v2 21/39] acpi: Convert part of acpi_table to use acpi_ctx

2020-03-11 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > > The current code uses an address but a pointer would result in fewer > casts. Also it repeats the alignment code in a lot of places so this would > be better done in a helper function. > > Update write_acpi_tables() to make use of the new acpi_ctx

[PATCH v2 21/39] acpi: Convert part of acpi_table to use acpi_ctx

2020-03-08 Thread Simon Glass
The current code uses an address but a pointer would result in fewer casts. Also it repeats the alignment code in a lot of places so this would be better done in a helper function. Update write_acpi_tables() to make use of the new acpi_ctx structure, adding a few helpers to clean things up. Signe