mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 04:13:39 +08:00
nvdimm acpi: fix two comments
fixed the English issue and code-style issue Suggested-by: Stefan Hajnoczi <stefanha@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
c2fa30757a
commit
7adbce6339
@ -479,7 +479,7 @@ QEMU_BUILD_BUG_ON(sizeof(NvdimmFuncSetLabelDataIn) +
|
|||||||
offsetof(NvdimmDsmIn, arg3) > 4096);
|
offsetof(NvdimmDsmIn, arg3) > 4096);
|
||||||
|
|
||||||
struct NvdimmFuncReadFITIn {
|
struct NvdimmFuncReadFITIn {
|
||||||
uint32_t offset; /* the offset of FIT buffer. */
|
uint32_t offset; /* the offset into FIT buffer. */
|
||||||
} QEMU_PACKED;
|
} QEMU_PACKED;
|
||||||
typedef struct NvdimmFuncReadFITIn NvdimmFuncReadFITIn;
|
typedef struct NvdimmFuncReadFITIn NvdimmFuncReadFITIn;
|
||||||
QEMU_BUILD_BUG_ON(sizeof(NvdimmFuncReadFITIn) +
|
QEMU_BUILD_BUG_ON(sizeof(NvdimmFuncReadFITIn) +
|
||||||
@ -578,7 +578,7 @@ static void nvdimm_dsm_reserved_root(AcpiNVDIMMState *state, NvdimmDsmIn *in,
|
|||||||
case 0x0:
|
case 0x0:
|
||||||
nvdimm_dsm_function0(0x1 | 1 << 1 /* Read FIT */, dsm_mem_addr);
|
nvdimm_dsm_function0(0x1 | 1 << 1 /* Read FIT */, dsm_mem_addr);
|
||||||
return;
|
return;
|
||||||
case 0x1 /*Read FIT */:
|
case 0x1 /* Read FIT */:
|
||||||
nvdimm_dsm_func_read_fit(state, in, dsm_mem_addr);
|
nvdimm_dsm_func_read_fit(state, in, dsm_mem_addr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user