commit | 86e1778ded011051774e20faaefe4b12a838b1a0 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Apr 26 09:19:47 2020 -0600 |
committer | Bin Meng <bmeng.cn@gmail.com> | Thu Apr 30 17:16:12 2020 +0800 |
tree | cdf0e908e1f9d3e2ec50187b6f42271984176e8b | |
parent | 93f7f82782cb3d2bd55215ce984887efc6cddfed [diff] |
acpi: Convert part of acpi_table to use acpi_ctx 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. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>