projects
/
openwrt
/
staging
/
blogic.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 7b539e9d7aeacbfdeef8f4e3983b33456d9824b5..61c9a6d68561a7a5086dc7594fa1f072fdf254f1 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);