Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -20,12 +20,14 @@ static ssize_t field##_show(struct device *dev, \
}									\
static DEVICE_ATTR_RO(field)

gb_interface_attr(interface_id, u);
gb_interface_attr(vendor_id, x);
gb_interface_attr(product_id, x);
gb_interface_attr(vendor_string, s);
gb_interface_attr(product_string, s);

static struct attribute *interface_attrs[] = {
	&dev_attr_interface_id.attr,
	&dev_attr_vendor_id.attr,
	&dev_attr_product_id.attr,
	&dev_attr_vendor_string.attr,