Commit 320421a8 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: interface: add interface_id attribute

Add interface_id attribute that user space needs to identify an
interface.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 1eca63ae
...@@ -20,12 +20,14 @@ static ssize_t field##_show(struct device *dev, \ ...@@ -20,12 +20,14 @@ static ssize_t field##_show(struct device *dev, \
} \ } \
static DEVICE_ATTR_RO(field) static DEVICE_ATTR_RO(field)
gb_interface_attr(interface_id, u);
gb_interface_attr(vendor_id, x); gb_interface_attr(vendor_id, x);
gb_interface_attr(product_id, x); gb_interface_attr(product_id, x);
gb_interface_attr(vendor_string, s); gb_interface_attr(vendor_string, s);
gb_interface_attr(product_string, s); gb_interface_attr(product_string, s);
static struct attribute *interface_attrs[] = { static struct attribute *interface_attrs[] = {
&dev_attr_interface_id.attr,
&dev_attr_vendor_id.attr, &dev_attr_vendor_id.attr,
&dev_attr_product_id.attr, &dev_attr_product_id.attr,
&dev_attr_vendor_string.attr, &dev_attr_vendor_string.attr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment