mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
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:
parent
4396c00b73
commit
2b14daba1d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user