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)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:54 +0000 (16:03 +0000)
commit453ab72d1643c6f27cd6ad1f29ec95a22596fd75
treec73d70d80bfe47d956d5127961cda454ec1dfd53
parent1a9d0d7dcacdf8dec23c9d790219af24d76ac0f7
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