replaced with the numeric value of the endo layout
scheme as documented in the ARA Module Developer Kit.
-What: /sys/bus/greybus/device/endo-0xXXXX/Endo/id
+What: /sys/bus/greybus/device/endo-0xXXXX/id
Date: October 2015
KernelVersion: 4.XX
Contact: Greg Kroah-Hartman <greg@kroah.com>
defined by the the Endo layout scheme, documented in
the ARA Module Developer Kit.
-What: /sys/bus/greybus/device/endo-0xXXXX/Endo/ap_intf_id
+What: /sys/bus/greybus/device/endo-0xXXXX/ap_intf_id
Date: October 2015
KernelVersion: 4.XX
Contact: Greg Kroah-Hartman <greg@kroah.com>
The interface positions are defined in the ARA
Module Developer Kit.
-What: /sys/bus/greybus/device/endo-0xXXXX/SVC/serial_number
+What: /sys/bus/greybus/device/endo-0xXXXX/svc/serial_number
Date: October 2015
KernelVersion: 4.XX
Contact: Greg Kroah-Hartman <greg@kroah.com>
Description:
The serial number of the SVC device
-What: /sys/bus/greybus/device/endo-0xXXXX/SVC/version
+What: /sys/bus/greybus/device/endo-0xXXXX/svc/version
Date: October 2015
KernelVersion: 4.XX
Contact: Greg Kroah-Hartman <greg@kroah.com>
(4 + ((endo_layout)->max_ribs + 1) * 2)
/* endo sysfs attributes */
-static ssize_t svc_serial_number_show(struct device *dev,
+static ssize_t serial_number_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct gb_endo *endo = to_gb_endo(dev);
return sprintf(buf, "%s", &endo->svc_info.serial_number[0]);
}
-static DEVICE_ATTR_RO(svc_serial_number);
+static DEVICE_ATTR_RO(serial_number);
-static ssize_t svc_version_show(struct device *dev,
+static ssize_t version_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct gb_endo *endo = to_gb_endo(dev);
return sprintf(buf, "%s", &endo->svc_info.version[0]);
}
-static DEVICE_ATTR_RO(svc_version);
+static DEVICE_ATTR_RO(version);
static struct attribute *svc_attrs[] = {
- &dev_attr_svc_serial_number.attr,
- &dev_attr_svc_version.attr,
+ &dev_attr_serial_number.attr,
+ &dev_attr_version.attr,
NULL,
};
static const struct attribute_group svc_group = {
.attrs = svc_attrs,
- .name = "SVC",
+ .name = "svc",
};
-static ssize_t endo_id_show(struct device *dev,
+static ssize_t id_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct gb_endo *endo = to_gb_endo(dev);
return sprintf(buf, "0x%04x", endo->id);
}
-static DEVICE_ATTR_RO(endo_id);
+static DEVICE_ATTR_RO(id);
static ssize_t ap_intf_id_show(struct device *dev,
struct device_attribute *attr, char *buf)
static DEVICE_ATTR_RO(ap_intf_id);
static struct attribute *endo_attrs[] = {
- &dev_attr_endo_id.attr,
+ &dev_attr_id.attr,
&dev_attr_ap_intf_id.attr,
NULL,
};
static const struct attribute_group endo_group = {
.attrs = endo_attrs,
- .name = "Endo",
};
static const struct attribute_group *endo_groups[] = {