mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 10:20:17 -04: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:
committed by
Greg Kroah-Hartman
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user