|
@@ -928,7 +928,7 @@ static ssize_t format_show(struct device *dev,
|
|
|
{
|
|
|
struct acpi_nfit_control_region *dcr = to_nfit_dcr(dev);
|
|
|
|
|
|
- return sprintf(buf, "0x%04x\n", be16_to_cpu(dcr->code));
|
|
|
+ return sprintf(buf, "0x%04x\n", le16_to_cpu(dcr->code));
|
|
|
}
|
|
|
static DEVICE_ATTR_RO(format);
|
|
|
|
|
@@ -961,8 +961,8 @@ static ssize_t format1_show(struct device *dev,
|
|
|
continue;
|
|
|
if (nfit_dcr->dcr->code == dcr->code)
|
|
|
continue;
|
|
|
- rc = sprintf(buf, "%#x\n",
|
|
|
- be16_to_cpu(nfit_dcr->dcr->code));
|
|
|
+ rc = sprintf(buf, "0x%04x\n",
|
|
|
+ le16_to_cpu(nfit_dcr->dcr->code));
|
|
|
break;
|
|
|
}
|
|
|
if (rc != ENXIO)
|