mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
greybus: fix endian issue in sysfs.c
This commit is contained in:
parent
3d5453261b
commit
a6294fe849
@ -145,7 +145,7 @@ static ssize_t serial_number_show(struct device *dev,
|
||||
struct greybus_device *gdev = to_greybus_device(dev);
|
||||
|
||||
return sprintf(buf, "%llX\n",
|
||||
(unsigned long long)gdev->serial_number.serial_number);
|
||||
(unsigned long long)le64_to_cpu(gdev->serial_number.serial_number));
|
||||
}
|
||||
static DEVICE_ATTR_RO(serial_number);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user