staging: vc04_services: Add vchi_queue_user_message function
authorMichael Zoran <mzoran@crowfest.net>
Mon, 30 Jan 2017 07:31:10 +0000 (23:31 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2017 09:48:14 +0000 (10:48 +0100)
commit619969770f1486b82daa03d0b6f00eca3331f2ca
tree3dddd339cff44cdd5d0c53e67c96356f4c8d9456
parentfbcaed9e324de3c17fd57f8c8e65069c4e1eab8f
staging: vc04_services: Add vchi_queue_user_message function

The vchi_msg_queue function which is used by other drivers
to queue a message is difficult to understand and overly
generic.

Add a new function which is a wrapper on top of vchi_msg_queue
that is specifically for queuing a message located in user
address space.

int
vchi_queue_user_message(VCHI_SERVICE_HANDLE_T handle,
                        void __user *data,
                        unsigned int size)

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchi/vchi.h
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c