summaryrefslogtreecommitdiffstats
path: root/src/acpi/acpigen.c
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2021-01-22 15:47:11 +0100
committerAngel Pons <th3fanbus@gmail.com>2021-01-28 09:10:28 +0000
commit7435e254d401e2b3bc78756f65e3d0f1b2ce61e2 (patch)
tree7aa32699e7d9639de08d768f765a72298c068370 /src/acpi/acpigen.c
parentade4f3520b0c2bade062286ec98b40b49b6534d3 (diff)
downloadcoreboot-7435e254d401e2b3bc78756f65e3d0f1b2ce61e2.tar.gz
coreboot-7435e254d401e2b3bc78756f65e3d0f1b2ce61e2.tar.bz2
coreboot-7435e254d401e2b3bc78756f65e3d0f1b2ce61e2.zip
acpi/acpigen.c: Remove unused and incorrect functions
acpigen_write_name_zero() and acpigen_write_name_one() are not implemented correctly, and are not used anywhere. Drop them in favor of the more flexible acpigen_write_name_integer() function. Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Change-Id: I116fd41624a8e8b536d18d747f21d3131b734dfc Reviewed-on: https://review.coreboot.org/c/coreboot/+/49834 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Lance Zhao Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/acpi/acpigen.c')
-rw-r--r--src/acpi/acpigen.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index 9a5543d5a44d..5cc6a4edac0d 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -151,18 +151,6 @@ void acpigen_write_integer(uint64_t data)
acpigen_write_qword(data);
}
-void acpigen_write_name_zero(const char *name)
-{
- acpigen_write_name(name);
- acpigen_write_one();
-}
-
-void acpigen_write_name_one(const char *name)
-{
- acpigen_write_name(name);
- acpigen_write_zero();
-}
-
void acpigen_write_name_byte(const char *name, uint8_t val)
{
acpigen_write_name(name);