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>
This commit is contained in:
Johan Hovold 2015-11-25 15:59:00 +01:00 committed by Greg Kroah-Hartman
parent 4396c00b73
commit 2b14daba1d
1 changed files with 1 additions and 1 deletions

View File

@ -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);