|
@@ -816,7 +816,7 @@ static ssize_t vendor_show(struct device *dev,
|
|
|
{
|
|
|
struct acpi_nfit_control_region *dcr = to_nfit_dcr(dev);
|
|
|
|
|
|
- return sprintf(buf, "%#x\n", dcr->vendor_id);
|
|
|
+ return sprintf(buf, "0x%04x\n", be16_to_cpu(dcr->vendor_id));
|
|
|
}
|
|
|
static DEVICE_ATTR_RO(vendor);
|
|
|
|
|
@@ -825,7 +825,7 @@ static ssize_t rev_id_show(struct device *dev,
|
|
|
{
|
|
|
struct acpi_nfit_control_region *dcr = to_nfit_dcr(dev);
|
|
|
|
|
|
- return sprintf(buf, "%#x\n", dcr->revision_id);
|
|
|
+ return sprintf(buf, "0x%04x\n", be16_to_cpu(dcr->revision_id));
|
|
|
}
|
|
|
static DEVICE_ATTR_RO(rev_id);
|
|
|
|
|
@@ -834,7 +834,7 @@ static ssize_t device_show(struct device *dev,
|
|
|
{
|
|
|
struct acpi_nfit_control_region *dcr = to_nfit_dcr(dev);
|
|
|
|
|
|
- return sprintf(buf, "%#x\n", dcr->device_id);
|
|
|
+ return sprintf(buf, "0x%04x\n", be16_to_cpu(dcr->device_id));
|
|
|
}
|
|
|
static DEVICE_ATTR_RO(device);
|
|
|
|
|
@@ -843,7 +843,7 @@ static ssize_t format_show(struct device *dev,
|
|
|
{
|
|
|
struct acpi_nfit_control_region *dcr = to_nfit_dcr(dev);
|
|
|
|
|
|
- return sprintf(buf, "%#x\n", dcr->code);
|
|
|
+ return sprintf(buf, "0x%04x\n", be16_to_cpu(dcr->code));
|
|
|
}
|
|
|
static DEVICE_ATTR_RO(format);
|
|
|
|
|
@@ -852,7 +852,7 @@ static ssize_t serial_show(struct device *dev,
|
|
|
{
|
|
|
struct acpi_nfit_control_region *dcr = to_nfit_dcr(dev);
|
|
|
|
|
|
- return sprintf(buf, "%#x\n", dcr->serial_number);
|
|
|
+ return sprintf(buf, "0x%08x\n", be32_to_cpu(dcr->serial_number));
|
|
|
}
|
|
|
static DEVICE_ATTR_RO(serial);
|
|
|
|