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>
Wed, 1 Jul 2020 15:32:51 +0000 (16:32 +0100)
commit755219b6b44aa6c58ccc8916a35a6a54e4ffaabf
tree3a347c49d9b801ed57f5ec5159b61ee20049160e
parent610a9f41f499fba97e777cb780650244d30d90d3
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