diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-05-19 09:22:46 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-05-21 05:52:03 (GMT) |
commit | d52b35f6b62c8b9e1b7e10010daa0370f8252f1d (patch) | |
tree | 48c07e6a9c3fb195b2d6dbdc92a18883e2dcb8f7 /drivers/staging/greybus/operation.h | |
parent | 8e929a8230794c4b034d0f4b658aa03702f3800d (diff) | |
download | linux-d52b35f6b62c8b9e1b7e10010daa0370f8252f1d.tar.xz |
greybus: operation: add helper to retrieve max payload size
Add helper to retrieve the maximum payload size for operations on a
specific connection.
Note that the helper is not inlined due to how the header files are
currently organised, but it is not expected to be called after a
connection has been initialised either.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/operation.h')
-rw-r--r-- | drivers/staging/greybus/operation.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h index 740aacc..0199976 100644 --- a/drivers/staging/greybus/operation.h +++ b/drivers/staging/greybus/operation.h @@ -130,6 +130,7 @@ void gb_connection_recv(struct gb_connection *connection, int gb_operation_result(struct gb_operation *operation); +size_t gb_operation_get_payload_size_max(struct gb_connection *connection); struct gb_operation *gb_operation_create(struct gb_connection *connection, u8 type, size_t request_size, size_t response_size); |