summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/interface.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-05-05 08:49:58 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-05-05 13:33:20 -0700
commit0decdd55b38ac8276a1039654e529120f65ee366 (patch)
treee1ffdccfc31621388336cae9bf0d8e20b104eff6 /drivers/staging/greybus/interface.c
parentc77f85bbc91acafeafd4143a23a225fe81c7e294 (diff)
downloadlinux-0decdd55b38ac8276a1039654e529120f65ee366.tar.bz2
greybus: Revert "interface: Fetch and expose version of interface's firmware"
This reverts commit b957ade7b3e4ab8c149c53346dbf02e977b7f3a7. The interface version is now managed as part of the firmware-management protocol. This operation is already removed from the greybus specifications. Drop interface version support from greybus. Tested with gbsim (sysfs file not available after this patch). Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Acked-by: Sandeep Patil <sspatil@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/interface.c')
-rw-r--r--drivers/staging/greybus/interface.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c
index b5ad1ac9d3df..aed45bcef376 100644
--- a/drivers/staging/greybus/interface.c
+++ b/drivers/staging/greybus/interface.c
@@ -254,16 +254,6 @@ gb_interface_attr(vendor_id, "0x%08x");
gb_interface_attr(product_id, "0x%08x");
gb_interface_attr(serial_number, "0x%016llx");
-static ssize_t version_show(struct device *dev, struct device_attribute *attr,
- char *buf)
-{
- struct gb_interface *intf = to_gb_interface(dev);
-
- return scnprintf(buf, PAGE_SIZE, "%u.%u\n", intf->version_major,
- intf->version_minor);
-}
-static DEVICE_ATTR_RO(version);
-
static ssize_t voltage_now_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
@@ -328,7 +318,6 @@ static struct attribute *interface_attrs[] = {
&dev_attr_vendor_id.attr,
&dev_attr_product_id.attr,
&dev_attr_serial_number.attr,
- &dev_attr_version.attr,
&dev_attr_voltage_now.attr,
&dev_attr_current_now.attr,
&dev_attr_power_now.attr,
@@ -621,10 +610,6 @@ int gb_interface_enable(struct gb_interface *intf)
goto err_destroy_bundles;
}
- ret = gb_control_get_interface_version_operation(intf);
- if (ret)
- goto err_destroy_bundles;
-
ret = gb_control_get_bundle_versions(intf->control);
if (ret)
goto err_destroy_bundles;