OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4396c00
)
greybus: bundle: use hexadecimal notation for class attribute
author
Johan Hovold
<johan@hovoldconsulting.com>
Wed, 25 Nov 2015 14:59:00 +0000
(15:59 +0100)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Wed, 25 Nov 2015 23:27:06 +0000
(15:27 -0800)
Use hexadecimal notation for class-attribute value.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/bundle.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/bundle.c
b/drivers/staging/greybus/bundle.c
index
7b539e9
..
61c9a6d
100644
(file)
--- a/
drivers/staging/greybus/bundle.c
+++ b/
drivers/staging/greybus/bundle.c
@@
-14,7
+14,7
@@
static ssize_t bundle_class_show(struct device *dev,
{
struct gb_bundle *bundle = to_gb_bundle(dev);
- return sprintf(buf, "
%d
\n", bundle->class);
+ return sprintf(buf, "
0x%02x
\n", bundle->class);
}
static DEVICE_ATTR_RO(bundle_class);