summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/connection.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-03-03 13:34:36 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-03-04 18:26:08 -0800
commitcb033188d8a783be55d03017954b8e7453799a5d (patch)
treec8605c337379a750a99b729714352953a383e35e /drivers/staging/greybus/connection.h
parent8fd9466b8c324bc87c5db58a46c33731d1ea50bf (diff)
greybus: connection: add connection-flag interface
Add interface for associating a flag bitmask with a connection when creating it. Reviewed-by: Viresh Kumar <viresh.kumar@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.h')
-rw-r--r--drivers/staging/greybus/connection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/greybus/connection.h b/drivers/staging/greybus/connection.h
index 24b7d6f47671..d5ac1459332a 100644
--- a/drivers/staging/greybus/connection.h
+++ b/drivers/staging/greybus/connection.h
@@ -36,6 +36,7 @@ struct gb_connection {
struct list_head bundle_links;
gb_request_handler_t handler;
+ unsigned long flags;
struct gb_protocol *protocol;
u8 module_major;
@@ -59,6 +60,9 @@ struct gb_connection *gb_connection_create_static(struct gb_host_device *hd,
struct gb_connection *gb_connection_create_control(struct gb_interface *intf);
struct gb_connection *gb_connection_create(struct gb_bundle *bundle,
u16 cport_id, gb_request_handler_t handler);
+struct gb_connection * gb_connection_create_flags(struct gb_bundle *bundle,
+ u16 cport_id, gb_request_handler_t handler,
+ unsigned long flags);
void gb_connection_destroy(struct gb_connection *connection);
static inline bool gb_connection_is_static(struct gb_connection *connection)