summaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm2835-audio/bcm2835-vchiq.c
diff options
context:
space:
mode:
authorMichael Zoran <mzoran@crowfest.net>2017-02-01 06:31:53 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-02 13:01:31 +0100
commitc07acb97fd564cffcfd7bdc18eab9278bd448633 (patch)
treed52248dd9c0a64f361c0c77b53ac63b6178f69b8 /drivers/staging/bcm2835-audio/bcm2835-vchiq.c
parentfa6a8adf3ab78dde8a3e4b13af0922ae27328d10 (diff)
downloadop-kernel-dev-c07acb97fd564cffcfd7bdc18eab9278bd448633.zip
op-kernel-dev-c07acb97fd564cffcfd7bdc18eab9278bd448633.tar.gz
staging: bcm2835-audio: Replace call to vchi_msg_queue with vchi_queue_kernel_message
The function vchi_msg_queue was made static in vc04_services and replaced with vchi_queue_kernel_message. Change the call to vchi_msg_queue to vchi_queue_kernel_message Signed-off-by: Michael Zoran <mzoran@crowfest.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/bcm2835-audio/bcm2835-vchiq.c')
-rw-r--r--drivers/staging/bcm2835-audio/bcm2835-vchiq.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c
index e8fd9c7..7c952ba 100644
--- a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c
+++ b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c
@@ -81,23 +81,14 @@ static int bcm2835_audio_write_worker(struct bcm2835_alsa_stream *alsa_stream,
// Routine to send a message across a service
-static ssize_t
-bcm2835_vchi_msg_queue_callback(void *context, void *dest,
- size_t offset, size_t maxsize)
-{
- memcpy(dest, context + offset, maxsize);
- return maxsize;
-}
-
static int
bcm2835_vchi_msg_queue(VCHI_SERVICE_HANDLE_T handle,
void *data,
unsigned int size)
{
- return vchi_msg_queue(handle,
- bcm2835_vchi_msg_queue_callback,
- data,
- size);
+ return vchi_queue_kernel_message(handle,
+ data,
+ size);
}
static const u32 BCM2835_AUDIO_WRITE_COOKIE1 = ('B' << 24 | 'C' << 16 ||
OpenPOWER on IntegriCloud