summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/control.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/control.c
parentc77f85bbc91acafeafd4143a23a225fe81c7e294 (diff)
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/control.c')
-rw-r--r--drivers/staging/greybus/control.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/staging/greybus/control.c b/drivers/staging/greybus/control.c
index 1b28899cd336..13c68f3f01de 100644
--- a/drivers/staging/greybus/control.c
+++ b/drivers/staging/greybus/control.c
@@ -156,34 +156,6 @@ int gb_control_mode_switch_operation(struct gb_control *control)
NULL, 0);
}
-int gb_control_get_interface_version_operation(struct gb_interface *intf)
-{
- struct gb_control_interface_version_response response;
- struct gb_connection *connection = intf->control->connection;
- int ret;
-
- if (intf->quirks & GB_INTERFACE_QUIRK_NO_INTERFACE_VERSION)
- return 0;
-
- ret = gb_operation_sync(connection, GB_CONTROL_TYPE_INTERFACE_VERSION,
- NULL, 0, &response, sizeof(response));
- if (ret) {
- dev_err(&connection->intf->dev,
- "failed to get interface version: %d\n", ret);
- /*
- * FIXME: Return success until the time we bump version of
- * control protocol. The interface-version is already set to
- * 0.0, so no need to update that.
- */
- return 0;
- }
-
- intf->version_major = le16_to_cpu(response.major);
- intf->version_minor = le16_to_cpu(response.minor);
-
- return 0;
-}
-
int gb_control_timesync_enable(struct gb_control *control, u8 count,
u64 frame_time, u32 strobe_delay, u32 refclk)
{