staging: mmal-vchiq: Fix client_component for 64 bit kernel
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Tue, 22 Jan 2019 12:04:09 +0000 (12:04 +0000)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:17 +0000 (00:08 +0100)
commitc1cafdc9f75a372027a84a913c6b786d52628665
tree9e22cf7bcd551bc8b934578b474ad6bf9891b40c
parentaed987bd066a205309759e4f85a2cee4c93958bc
staging: mmal-vchiq: Fix client_component for 64 bit kernel

The MMAL client_component field is used with the event
mechanism to allow the client to identify the component for
which the event is generated.
The field is only 32bits in size, therefore we can't use a
pointer to the component in a 64 bit kernel.

Component handles are already held in an array per VCHI
instance, so use the array index as the client_component handle
to avoid having to create a new IDR for this purpose.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c
drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.h