acpigen: Add and use acpigen_write_device

Hardware / Coreboot - Vladimir Serbinenko [gmail.com] - 19 November 2014 12:51 UTC

The sequence of bytes to create a method is used several times in codebase. Put it into a function with logical arguments rather than duplicating magic bytes everywhere.

Change-Id: I2c33fa403832eb1cfadfbf8d9adef5b63fb9cb24

663be6e acpigen: Add and use acpigen_write_device.
src/arch/x86/boot/acpigen.c | 13 +++++++++++++
src/arch/x86/include/arch/acpigen.h | 1 +
src/drivers/lenovo/wacom.c | 12 ++----------
3 files changed, 16 insertions(+), 10 deletions(-)

Upstream: review.coreboot.org


  • Share