acpi/nfit: Update nfit driver to comply with ACPI 6.1
authorToshi Kani <toshi.kani@hpe.com>
Mon, 25 Apr 2016 21:34:58 +0000 (15:34 -0600)
committerDan Williams <dan.j.williams@intel.com>
Tue, 26 Apr 2016 21:45:18 +0000 (14:45 -0700)
commit5ad9a7fde07a95b326da9e650b4f0a41b85e47b5
tree7e921a398d204492d519c03fff0e4f6a7552bef0
parent8804f2525a56261b93576a1900185ac2691d138a
acpi/nfit: Update nfit driver to comply with ACPI 6.1

ACPI 6.1, Table 5-133, updates NVDIMM Control Region Structure
as follows.
 - Valid Fields, Manufacturing Location, and Manufacturing Date
   are added from reserved range.  No change in the structure size.
 - IDs (SPD values) are stored as arrays of bytes (i.e. big-endian
   format).  The spec clarifies that they need to be represented
   as arrays of bytes as well.

This patch makes the following changes to support this update.
 - Change the NFIT driver to show SPD ID values in big-endian
   format.
 - Change sprintf format to use "0x" instead of "#" since "%#02x"
   does not prepend '0'.

link: http://www.uefi.org/sites/default/files/resources/ACPI_6_1.pdf
Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Robert Moore <robert.moore@intel.com>
Cc: Robert Elliott <elliott@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit.c