]> git.dujemihanovic.xyz Git - u-boot.git/commit
acpi: Export functions to write sized values
authorSimon Glass <sjg@chromium.org>
Wed, 8 Jul 2020 03:32:09 +0000 (21:32 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commitfea9651084e72fe94aefa0b828854ef5ce2835b4
tree4ff827dff11abdbb6fb61ac424f7a924bf3c2aed
parentb4e843341816395ef8a9d48793322617f9a50f9f
acpi: Export functions to write sized values

At present only acpigen_write_integer() is exported for use by other code.
But in some cases it is useful to call the specific function depending on
the size of the value.

Export these functions and add a test.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: Fix the "new blank line at EOF" warning]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
include/acpi/acpigen.h
test/dm/acpigen.c