nvdimm acpi: use aml_name_decl to define named object
to make the code more clearer Suggested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com>
This commit is contained in:
parent
5a33db78b0
commit
aef056c11d
|
@ -1098,13 +1098,11 @@ static void nvdimm_build_fit(Aml *dev)
|
||||||
buf_size = aml_local(1);
|
buf_size = aml_local(1);
|
||||||
fit = aml_local(2);
|
fit = aml_local(2);
|
||||||
|
|
||||||
aml_append(dev, aml_create_dword_field(aml_buffer(4, NULL),
|
aml_append(dev, aml_name_decl(NVDIMM_DSM_RFIT_STATUS, aml_int(0)));
|
||||||
aml_int(0), NVDIMM_DSM_RFIT_STATUS));
|
|
||||||
|
|
||||||
/* build helper function, RFIT. */
|
/* build helper function, RFIT. */
|
||||||
method = aml_method("RFIT", 1, AML_SERIALIZED);
|
method = aml_method("RFIT", 1, AML_SERIALIZED);
|
||||||
aml_append(method, aml_create_dword_field(aml_buffer(4, NULL),
|
aml_append(method, aml_name_decl("OFST", aml_int(0)));
|
||||||
aml_int(0), "OFST"));
|
|
||||||
|
|
||||||
/* prepare input package. */
|
/* prepare input package. */
|
||||||
pkg = aml_package(1);
|
pkg = aml_package(1);
|
||||||
|
|
Loading…
Reference in a new issue