diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-06-22 11:42:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-06-24 16:22:30 -0700 |
commit | 6910fa2dd6dc0d81c6ec4a2f36d6e21bd27b4479 (patch) | |
tree | 336d70ea89f66d9e9eaac6f93288e5f8f980e4a5 /drivers/staging/greybus/connection.c | |
parent | greybus: camera: Add RAW data format (diff) | |
download | linux-dev-6910fa2dd6dc0d81c6ec4a2f36d6e21bd27b4479.tar.xz linux-dev-6910fa2dd6dc0d81c6ec4a2f36d6e21bd27b4479.zip |
greybus: hd: add flag argument to cport_enable callback
Add a flag argument to the host-device cport_enable callback that can be
used to provide hints about the connection being created (e.g.
connection priority).
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r-- | drivers/staging/greybus/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index 20a87b9ee674..232af8d13111 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -286,7 +286,8 @@ static int gb_connection_hd_cport_enable(struct gb_connection *connection) if (!hd->driver->cport_enable) return 0; - ret = hd->driver->cport_enable(hd, connection->hd_cport_id); + ret = hd->driver->cport_enable(hd, connection->hd_cport_id, + connection->flags); if (ret) { dev_err(&hd->dev, "%s: failed to enable host cport: %d\n", connection->name, ret); |