projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d54532
)
greybus: fix endian issue in sysfs.c
author
Greg Kroah-Hartman
<greg@kroah.com>
Thu, 11 Sep 2014 00:12:20 +0000
(17:12 -0700)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Thu, 11 Sep 2014 00:12:20 +0000
(17:12 -0700)
drivers/staging/greybus/sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/sysfs.c
b/drivers/staging/greybus/sysfs.c
index 2393a6a0b678c430f351e1a403540693fe65b2bc..a24a9edb9d77f1f15d88d0b43f4ceaad9e0ad865 100644
(file)
--- a/
drivers/staging/greybus/sysfs.c
+++ b/
drivers/staging/greybus/sysfs.c
@@
-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);