x86: nhlt: Fix a few bugs in the table generation
authorSimon Glass <sjg@chromium.org>
Wed, 4 Nov 2020 16:57:27 +0000 (09:57 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 6 Nov 2020 01:51:29 +0000 (09:51 +0800)
commit8bcfb7917a61ef8230d85b6efc5a272fd20637ff
tree26d0d9654029ea974bffb61e5f9c7c0e5513b7ce
parenta87fff80eeaaac3653e3d3c63ca73298fd38c02c
x86: nhlt: Fix a few bugs in the table generation

At present these tables do not have the correct header, and there is an
occasional incorrect value due to uninited data. Fix these bugs.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/acpi_nhlt.c