nvdimm: use NVDIMM_ACPI_IO_LEN for the proper IO size
commit1b8fff57584d04a94cc77b8d3f535d35f5827a5e
authorWei Yang <richardw.yang@linux.intel.com>
Wed, 27 Feb 2019 07:51:00 +0000 (27 15:51 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 13 Mar 2019 02:31:21 +0000 (12 22:31 -0400)
tree83833ea33da39f31c113895d5b9c9489b9b2c2e5
parentac265cacdd117ae965515df41bb4452478d22179
nvdimm: use NVDIMM_ACPI_IO_LEN for the proper IO size

The IO range is defined to 4 bytes with NVDIMM_ACPI_IO_LEN, so it is
more proper to use this macro instead of calculating it by sizeof.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Message-Id: <20190227075101.6263-4-richardw.yang@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
hw/acpi/nvdimm.c