summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/hd.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-06-22 11:42:02 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-06-24 16:22:30 -0700
commit6910fa2dd6dc0d81c6ec4a2f36d6e21bd27b4479 (patch)
tree336d70ea89f66d9e9eaac6f93288e5f8f980e4a5 /drivers/staging/greybus/hd.h
parentcaad3090ab37d47e21505b613ad611ad6d20358d (diff)
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/hd.h')
-rw-r--r--drivers/staging/greybus/hd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/hd.h b/drivers/staging/greybus/hd.h
index 5136d0c9ecc8..d5d8c67551f2 100644
--- a/drivers/staging/greybus/hd.h
+++ b/drivers/staging/greybus/hd.h
@@ -19,7 +19,8 @@ struct gb_hd_driver {
int (*cport_allocate)(struct gb_host_device *hd, int cport_id,
unsigned long flags);
void (*cport_release)(struct gb_host_device *hd, u16 cport_id);
- int (*cport_enable)(struct gb_host_device *hd, u16 cport_id);
+ int (*cport_enable)(struct gb_host_device *hd, u16 cport_id,
+ unsigned long flags);
int (*cport_disable)(struct gb_host_device *hd, u16 cport_id);
int (*cport_flush)(struct gb_host_device *hd, u16 cport_id);
int (*cport_ping)(struct gb_host_device *hd, u16 cport_id);