diff options
author | 2020-06-29 17:09:31 +0200 | |
---|---|---|
committer | 2020-07-01 15:47:06 +0200 | |
commit | b1d362f408e28220f02d0d73351dc3fa94923c5d (patch) | |
tree | e26c67503426aabe30f2f59cf81433189cb356e3 /drivers/staging/vc04_services/interface/vchi/vchi.h | |
parent | staging: vchiq: Pass vchiq's message when holding a message (diff) | |
download | linux-dev-b1d362f408e28220f02d0d73351dc3fa94923c5d.tar.xz linux-dev-b1d362f408e28220f02d0d73351dc3fa94923c5d.zip |
staging: vchi: Rework vchi_msg_hold() to match vchiq_msg_hold()
The services have access to struct vchiq_header's internals, so we can
let them get the data pointer. This pretty much makes both functions
exactly the same, which will allow us to make a switch to
vchiq_msg_hold() further down the road.
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/20200629150945.10720-34-nsaenzjulienne@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vc04_services/interface/vchi/vchi.h')
-rw-r--r-- | drivers/staging/vc04_services/interface/vchi/vchi.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/vc04_services/interface/vchi/vchi.h b/drivers/staging/vc04_services/interface/vchi/vchi.h index 72771fdee9d6..59559d4cd5f1 100644 --- a/drivers/staging/vc04_services/interface/vchi/vchi.h +++ b/drivers/staging/vc04_services/interface/vchi/vchi.h @@ -54,10 +54,7 @@ extern int vchi_queue_kernel_message(unsigned handle, void *data, // Routine to look at a message in place. // The message is dequeued, so the caller is left holding it; the descriptor is // filled in and must be released when the user has finished with the message. -extern int32_t vchi_msg_hold(unsigned handle, - void **data, // } may be NULL, as info can be - uint32_t *msg_size, // } obtained from HELD_MSG_T - struct vchiq_header **message); +struct vchiq_header *vchi_msg_hold(unsigned handle); /******************************************************************************* * Global service support API - operations on held messages |