From: Johan Hovold <johan@hovoldconsulting.com>
Date: Wed, 25 Nov 2015 14:59:00 +0000 (+0100)
Subject: greybus: bundle: use hexadecimal notation for class attribute
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2b14daba1d6976a078ba8ccdd1f932f2320061a8;p=linux.git

greybus: bundle: use hexadecimal notation for class attribute

Use hexadecimal notation for class-attribute value.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
---

diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c
index 7b539e9d7aeac..61c9a6d68561a 100644
--- 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);